raptor-dom
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -15,3 +15,3 @@ /* | ||
Previous version from Addy Osmani (https://raw.github.com/addyosmani/jquery.parts/master/jquery.documentReady.js) | ||
This version: Patrick Steele-Idem | ||
@@ -90,9 +90,9 @@ - Converted to CommonJS module | ||
// Catch cases where $ is called after the | ||
// browser event has already occurred. | ||
if ( doc.readyState !== "loading" ) { | ||
domReady(); | ||
} | ||
// Mozilla, Opera and webkit nightlies currently support this event | ||
if ( doc.addEventListener ) { | ||
// browser event has already occurred. IE <= 10 has a bug that results in 'interactive' being assigned | ||
// to the readyState before the DOM is really ready | ||
if ( document.attachEvent ? document.readyState === "complete" : document.readyState !== "loading" ) { | ||
// We will get here if the browser is IE and the readyState === 'complete' or the browser | ||
// is not IE and the readyState === 'interactive' || 'complete' | ||
domReady(); | ||
} else if ( doc.addEventListener ) { // Standards-based browsers support DOMContentLoaded | ||
// Use the handy event callback | ||
@@ -126,3 +126,3 @@ doc.addEventListener( "DOMContentLoaded", domContentLoaded, false ); | ||
listeners.push([callback, thisObj]); | ||
if (!readyBound) { | ||
@@ -129,0 +129,0 @@ readyBound = true; |
@@ -24,3 +24,3 @@ { | ||
}, | ||
"version": "1.0.1" | ||
"version": "1.0.2" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8940
224