[Commits] r203 - sandbox/opengeo/drake/trunk/apps/drake

commits at geoext.org commits at geoext.org
Thu Feb 19 17:53:46 CET 2009


Author: tcoulter
Date: 2009-02-19 17:53:46 +0100 (Thu, 19 Feb 2009)
New Revision: 203

Modified:
   sandbox/opengeo/drake/trunk/apps/drake/LayerNodeUI.js
Log:
Comment clean up.

Modified: sandbox/opengeo/drake/trunk/apps/drake/LayerNodeUI.js
===================================================================
--- sandbox/opengeo/drake/trunk/apps/drake/LayerNodeUI.js	2009-02-19 16:49:31 UTC (rev 202)
+++ sandbox/opengeo/drake/trunk/apps/drake/LayerNodeUI.js	2009-02-19 16:53:46 UTC (rev 203)
@@ -42,15 +42,15 @@
                     // Note: target.click() below somehow causes the div's click event
                     // to be fired again. In total, then, the user clicking on the radio
                     // button would cause the layeractivated event to be fired twice -- we
-                    // don't want. To distinguish between the user-generated click and the
-                    // and the artificially generated click (i.e., target.click()), we check
-                    // the browser events "isTrusted" parameter to see which click we're
+                    // don't want that. To distinguish between the user-generated click and
+                    // the artificially generated click (i.e., target.click()), we check
+                    // the browserEvent's "isTrusted" parameter to see which click we're
                     // responding to. If "isTrusted" is true, then this event is the original
                     // event fired by the browser, and not the one fired by target.click().
                     //
                     // Oddly, due to the radio button already being clicked, target.click() 
-                    // must not keep firing the click event, or else this function cause an
-                    // infinite loop.
+                    // must not keep firing the click event, or else this function would cause 
+                    // an infinite loop.
                     if (evt.browserEvent.isTrusted == true) {
                         this.node.ownerTree.fireEvent("layeractivated", this.node.layer);
                     }



More information about the Commits mailing list