You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@click.apache.org by sa...@apache.org on 2009/03/15 18:34:35 UTC

svn commit: r754699 - /incubator/click/trunk/click/framework/src/org/apache/click/control/control.js

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();
+            }
         }
     }
 };