Author: mgrigorov
Date: Fri Oct  7 07:44:39 2011
New Revision: 1179954

URL: http://svn.apache.org/viewvc?rev=1179954&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/trunk/wicket-core/src/main/java/org/apache/wicket/markup/html/wicket-event.js

Modified: 
wicket/trunk/wicket-core/src/main/java/org/apache/wicket/markup/html/wicket-event.js
URL: 
http://svn.apache.org/viewvc/wicket/trunk/wicket-core/src/main/java/org/apache/wicket/markup/html/wicket-event.js?rev=1179954&r1=1179953&r2=1179954&view=diff
==============================================================================
--- 
wicket/trunk/wicket-core/src/main/java/org/apache/wicket/markup/html/wicket-event.js
 (original)
+++ 
wicket/trunk/wicket-core/src/main/java/org/apache/wicket/markup/html/wicket-event.js
 Fri Oct  7 07:44:39 2011
@@ -215,7 +215,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 { 


Reply via email to