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:36:46 UTC

svn commit: r754702 - in /incubator/click/branches/click-2.0.x: documentation/docs/roadmap-changes.html framework/src/org/apache/click/control/control.js

Author: sabob
Date: Sun Mar 15 17:36:46 2009
New Revision: 754702

URL: http://svn.apache.org/viewvc?rev=754702&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. backported CLK-503

Modified:
    incubator/click/branches/click-2.0.x/documentation/docs/roadmap-changes.html
    incubator/click/branches/click-2.0.x/framework/src/org/apache/click/control/control.js

Modified: incubator/click/branches/click-2.0.x/documentation/docs/roadmap-changes.html
URL: http://svn.apache.org/viewvc/incubator/click/branches/click-2.0.x/documentation/docs/roadmap-changes.html?rev=754702&r1=754701&r2=754702&view=diff
==============================================================================
--- incubator/click/branches/click-2.0.x/documentation/docs/roadmap-changes.html (original)
+++ incubator/click/branches/click-2.0.x/documentation/docs/roadmap-changes.html Sun Mar 15 17:36:46 2009
@@ -96,6 +96,12 @@
           [<a target='_blank' href="https://issues.apache.org/click/browse/CLK-499">499</a>].
       </li>
       <li class="change">
+          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.
+          This issue was raised by Adrian
+          [<a target='_blank' href="https://issues.apache.org/click/browse/CLK-503">503</a>].
+      </li>
+      <li class="change">
           Fixed a bug where FieldSet was not set as the parent of its child controls.
           This issue was raised by James P Brown
           [<a target='_blank' href="https://issues.apache.org/click/browse/CLK-497">497</a>].

Modified: incubator/click/branches/click-2.0.x/framework/src/org/apache/click/control/control.js
URL: http://svn.apache.org/viewvc/incubator/click/branches/click-2.0.x/framework/src/org/apache/click/control/control.js?rev=754702&r1=754701&r2=754702&view=diff
==============================================================================
--- incubator/click/branches/click-2.0.x/framework/src/org/apache/click/control/control.js (original)
+++ incubator/click/branches/click-2.0.x/framework/src/org/apache/click/control/control.js Sun Mar 15 17:36:46 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();
+            }
         }
     }
 };