Comparing version 0.2.2 to 0.2.3
{ | ||
"name": "domready", | ||
"description": "bullet proof DOM ready method", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"homepage": "https://github.com/ded/domready", | ||
@@ -6,0 +6,0 @@ "authors": ["Dustin Diaz <@ded>"], |
!function (context, doc) { | ||
var fns = [], ol, f = false, | ||
testEl = doc.createElement('a'), | ||
testEl = doc.documentElement, | ||
hack = testEl.doScroll, | ||
@@ -27,3 +27,3 @@ domContentLoaded = 'DOMContentLoaded', | ||
var domReady = hack ? | ||
context['domReady'] = hack ? | ||
function (fn) { | ||
@@ -45,4 +45,2 @@ self != top ? | ||
context['domReady'] = domReady; | ||
}(this, document); |
@@ -1,1 +0,2 @@ | ||
!function(a,b){function l(a){k=1;while(a=c.shift())a()}var c=[],d,e=!1,f=b.createElement("a"),g=f.doScroll,h="DOMContentLoaded",i="addEventListener",j="onreadystatechange",k=/^loade|c/.test(b.readyState);b[i]&&b[i](h,function a(){b.removeEventListener(h,a,e),l()},e),g&&b.attachEvent(j,d=function a(){/^c/.test(b.readyState)&&(b.detachEvent(j,a),l())});var m=g?function(a){self!=top?k?a():c.push(a):function(){try{f.doScroll("left")}catch(b){return setTimeout(function(){m(a)},50)}a()}()}:function(a){k?a():c.push(a)};a.domReady=m}(this,document) | ||
!function(a,b){function l(a){k=1;while(a=c.shift())a()}var c=[],d,e=!1,f=b.documentElement,g=f.doScroll,h="DOMContentLoaded",i="addEventListener",j="onreadystatechange",k=/^loade|c/.test(b.readyState);b[i]&&b[i](h,function a(){b.removeEventListener(h,a,e),l()},e),g&&b.attachEvent(j,d=function a(){/^c/.test(b.readyState)&&(b.detachEvent(j,a),l())}),a.domReady=g?function(a){self!=top?k?a():c.push(a):function(){try{f.doScroll("left")}catch(b){return setTimeout(function(){domReady(a)},50)}a()}()}:function(a){k?a():c.push(a)}}(this,document) |
!function (context, doc) { | ||
var fns = [], ol, f = false, | ||
testEl = doc.createElement('a'), | ||
testEl = doc.documentElement, | ||
hack = testEl.doScroll, | ||
@@ -27,3 +27,3 @@ domContentLoaded = 'DOMContentLoaded', | ||
var domReady = hack ? | ||
context['domReady'] = hack ? | ||
function (fn) { | ||
@@ -45,4 +45,2 @@ self != top ? | ||
context['domReady'] = domReady; | ||
}(this, document); |
5051
101