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 (parent:
ee2efbe
)
Fixed the attribution for the DOM Ready fix - the previously used changes weren't...
author
John Resig
<jeresig@gmail.com>
Thu, 27 Sep 2007 20:49:30 +0000
(20:49 +0000)
committer
John Resig
<jeresig@gmail.com>
Thu, 27 Sep 2007 20:49:30 +0000
(20:49 +0000)
src/event.js
patch
|
blob
|
history
diff --git
a/src/event.js
b/src/event.js
index
919dbf8
..
99778f8
100644
(file)
--- a/
src/event.js
+++ b/
src/event.js
@@
-433,10
+433,10
@@
function bindReady(){
// Continually check to see if the document is ready
(function timer() {
try {
// Continually check to see if the document is ready
(function timer() {
try {
- // If IE is used, use the excellent hack by Hedger Wang and Andrea Giammarchi
- // http://www.3site.eu/jstests/onContent/DOMReadyAnddoScroll.php
+ // If IE is used, use the trick by Diego Perini
+ // http://javascript.nwbox.com/IEContentLoaded/
if ( jQuery.browser.msie || document.readyState != "loaded" && document.readyState != "complete" )
if ( jQuery.browser.msie || document.readyState != "loaded" && document.readyState != "complete" )
- document.firstChild.doScroll("left");
+ document.documentElement.doScroll("left");
// and execute any waiting functions
jQuery.ready();
// and execute any waiting functions
jQuery.ready();