[fusion-commits] r1635 - trunk/lib

svn_fusion at osgeo.org svn_fusion at osgeo.org
Wed Nov 5 08:56:09 EST 2008


Author: pagameba
Date: 2008-11-05 08:56:09 -0500 (Wed, 05 Nov 2008)
New Revision: 1635

Modified:
   trunk/lib/jxlib.uncompressed.js
Log:
Re #151.  Update to new jxlib to correct a problem in the contextmenu event handler of tree items

Modified: trunk/lib/jxlib.uncompressed.js
===================================================================
--- trunk/lib/jxlib.uncompressed.js	2008-11-04 12:54:21 UTC (rev 1634)
+++ trunk/lib/jxlib.uncompressed.js	2008-11-05 13:56:09 UTC (rev 1635)
@@ -13044,9 +13044,9 @@
             href:'javascript:void(0)',
             html: this.options.label,
             events: {
-                click: this.selected.bindWithEvent(this),
-                dblclick: this.selected.bindWithEvent(this),
-                contextmenu: this.showMenu.bindWithEvent(this)
+                click: this.selected.bind(this),
+                dblclick: this.selected.bind(this),
+                contextmenu: this.showMenu.bind(this)
             }
         });
         domA.appendChild(domImg);
@@ -13109,7 +13109,7 @@
      * e - {Event} the DOM event
      */
     selected : function(e) {
-        this.lastEvent = e;
+        this.lastEvent = new Event(e);
         this.fireEvent('click', this);
     },
     /**
@@ -13121,12 +13121,12 @@
      * e - {Event} the DOM event
      */
     showMenu: function(e) {
-        this.lastEvent = e;
+        this.lastEvent = new Event(e);
         this.fireEvent('click',this);
         if (this.contextMenu) {
             this.contextMenu.show(this.lastEvent);
         }
-        e.stop();
+        this.lastEvent.stop();
     },
     /**
      * Method: getName



More information about the fusion-commits mailing list