git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
7c85d97
)
Fix for IE firing document ready too soon (Bug #1320).
author
John Resig
<jeresig@gmail.com>
Thu, 12 Jul 2007 20:33:05 +0000
(20:33 +0000)
committer
John Resig
<jeresig@gmail.com>
Thu, 12 Jul 2007 20:33:05 +0000
(20:33 +0000)
src/event/event.js
patch
|
blob
|
history
diff --git
a/src/event/event.js
b/src/event/event.js
index
5d8e89a
..
f7cc993
100644
(file)
--- a/
src/event/event.js
+++ b/
src/event/event.js
@@
-954,7
+954,7
@@
new function(){
// script does not exist if jQuery is loaded dynamically
if ( script )
script.onreadystatechange = function() {
// script does not exist if jQuery is loaded dynamically
if ( script )
script.onreadystatechange = function() {
- if ( this.readyState != "complete" ) return;
+ if ( document.readyState != "complete" ) return;
jQuery.ready();
};
jQuery.ready();
};