forked from bluesmoon/boomerang
-
Notifications
You must be signed in to change notification settings - Fork 294
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correctly detect our url on IE using non-standard loader
In all browsers except IE, document.currentScript will get us the current script node In IE, if it uses our standard loader, one of the document.getElementById calls will get us the current script node In IE 6-10, if not using the standard loader, we iterate through all script nodes in reverse, and stop at the first whose readyState is "interactive", indicating that it is currently executing. In IE 11, we throw an Error object, and pull the filename out of the error's stack property. This property is only populated when an error is thrown. Also add unit tests and page tests that test if BOOMR.url exists when using different kinds of loaders Finally, updated comments that are no longer correct, and fix one instance where we used `document` rather than `d` to check whether `visibilityState` was supported.
- Loading branch information
Showing
5 changed files
with
93 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters