Author: mgrigorov
Date: Fri Oct 7 07:47:38 2011
New Revision: 1179955
URL: http://svn.apache.org/viewvc?rev=1179955&view=rev
Log:
WICKET-4111 addDomReadyEvent broken for IE
Revert WICKET-4080.
'complete' state is consistently invoked in the provided test case.
Topicus apps (the reason for WICKET-4080) don't use Wicket's DOM Ready impl
now, they use JQuery, and there are no other users complaining from the old
code.
Modified:
wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/markup/html/wicket-event.js
Modified:
wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/markup/html/wicket-event.js
URL:
http://svn.apache.org/viewvc/wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/markup/html/wicket-event.js?rev=1179955&r1=1179954&r2=1179955&view=diff
==============================================================================
---
wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/markup/html/wicket-event.js
(original)
+++
wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/markup/html/wicket-event.js
Fri Oct 7 07:47:38 2011
@@ -200,7 +200,7 @@ if (typeof(Wicket.Event) == "undefined")
var src =
(window.location.protocol == 'https:') ? '\/\/:' : 'javascript:void(0)';
document.write('<script
id="ie_ready" defer src="' + src + '"><\/script>');
document.getElementById('ie_ready').onreadystatechange = function() {
- if (this.readyState ==
'complete' || this.readyState == "loaded") domReady();
+ if (this.readyState ==
'complete') domReady();
};
}
} else {
@@ -212,4 +212,4 @@ if (typeof(Wicket.Event) == "undefined")
}
}
};
-}
\ No newline at end of file
+}