click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r754699 - /incubator/click/trunk/click/framework/src/org/apache/click/control/control.js
Date Sun, 15 Mar 2009 17:34:35 GMT
Author: sabob
Date: Sun Mar 15 17:34:35 2009
New Revision: 754699

URL: http://svn.apache.org/viewvc?rev=754699&view=rev
Log:
Fixed a bug in control.js which caused the addLoadEvent event queue to be reset if multiple
control.js scripts are imported in the same page. CLK-503

Modified:
    incubator/click/trunk/click/framework/src/org/apache/click/control/control.js

Modified: incubator/click/trunk/click/framework/src/org/apache/click/control/control.js
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/framework/src/org/apache/click/control/control.js?rev=754699&r1=754698&r2=754699&view=diff
==============================================================================
--- incubator/click/trunk/click/framework/src/org/apache/click/control/control.js (original)
+++ incubator/click/trunk/click/framework/src/org/apache/click/control/control.js Sun Mar
15 17:34:35 2009
@@ -22,14 +22,16 @@
 /**
  * DomReady state variables.
  */
-Click.domready = {
-    events: [],
-    ready: false,
-    run : function() {
-        Click.domready.ready=true;
-        var e;
-        while(e = Click.domready.events.shift()) {
-            e();
+if ( typeof Click.domready == 'undefined' ) {
+    Click.domready = {
+        events: [],
+        ready: false,
+        run : function() {
+            Click.domready.ready=true;
+            var e;
+            while(e = Click.domready.events.shift()) {
+                e();
+            }
         }
     }
 };



Mime
View raw message