[fusion-commits] r1723 - trunk/widgets

svn_fusion at osgeo.org svn_fusion at osgeo.org
Thu Dec 18 15:44:01 EST 2008


Author: pagameba
Date: 2008-12-18 15:44:01 -0500 (Thu, 18 Dec 2008)
New Revision: 1723

Modified:
   trunk/widgets/SaveMap.js
Log:
Fixes #193.  Remove the unnecessary call to inheritFrom and rename the execute method to activate

Modified: trunk/widgets/SaveMap.js
===================================================================
--- trunk/widgets/SaveMap.js	2008-12-18 20:28:52 UTC (rev 1722)
+++ trunk/widgets/SaveMap.js	2008-12-18 20:44:01 UTC (rev 1723)
@@ -101,7 +101,6 @@
                 this.oMenu.add(menuItem);
             }
         } else {
-            Object.inheritFrom(this, Fusion.Widget.prototype, []);
             if (json.Width && json.Width[0] != '') {
                 this.imageWidth = json.Width[0];
             }
@@ -137,7 +136,7 @@
      * called when the button is clicked by the Fusion.Widget widget
      * prompts user to save the map.
      */
-    execute: function() {
+    activate: function() {
         if (!this.iframe) {
             this.iframe = document.createElement('iframe');
             this.iframe.id = 'w';



More information about the fusion-commits mailing list