Git Product home page Git Product logo

scoutfile's Issues

Consider removing stub modules implemented in bv-ui-core.

With the move of module code from this repository into bv-ui-core, the next step is to remove the stub modules we left in place.

This will be a breaking change for many clients, but seems like the right thing to do.

It will require some finessing of documentation in addition to code.

Update duck type check for Element in loader

The check as to whether an object is a DOM node has been found to fail under a specific condition where a site uses the loader module side by side with PrototypeJS (v1.7).

Prototype does some extending of the DOM interface, and is pretty non-intrusive in most of the browsers, so the instanceof Element check should work -- unless of course you are in IE8.

We recently added the check to this repo but I don't think this specific case was tested.

To verify that this check won't work with prototype, load up this page in IE8 and try document.getElementsByTagName('body')[0] instanceof Element

Add an `injectionNode` option to `loadStyleSheet`

The problem

The loadStyleSheet method injects a link tag as a sibling of the first script node, which doesn't work on Firebird's container page because we replace everything within the body tag soon thereafter.

Proposed solution

Allow an option called injectionNode that lets us specify a different node (in our case the head). This lets us customize the behavior of loadStyleSheet without changing the behavior for anyone else.

loadScript: Script continues to load after onerror

When using loadScript, I noticed that if my script takes longer than the default 1 sec, the script will continue to load and execute. Is this by design? In this scenario, onerror still gets called and eventually cleanup gets called too.

This happens in all browsers except for IE8 which relies on the script.onclick(); trick, which never gets called because onreadystatechange gets removed during cleanup.

Broken link in README.md

There is a line break on line 92 that breaks the link for 'Including common functionality via modules'

document is wrong in IE8 in script loaded with loadScript

I ran into problems when using loadScript to load the main JS file for Spotlights in IE8. In the main JS file, document didn't have the properties and methods that we needed. I noticed that these were undefined: document.documentElement, document.querySelector, and document.body. There are probably many others that are undefined.

To verify that this issue is with loadScript, I swapped it out to use https://www.npmjs.com/package/load-script instead, and IE8 was working fine.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.