[Commits] r2328 - extensions/geoext.ux/ux/SimplePrint/lib/GeoExt.ux

commits at geoext.org commits at geoext.org
Fri Sep 10 15:53:41 CEST 2010


Author: ahocevar
Date: 2010-09-10 15:53:40 +0200 (Fri, 10 Sep 2010)
New Revision: 2328

Modified:
   extensions/geoext.ux/ux/SimplePrint/lib/GeoExt.ux/SimplePrint.js
Log:
renamed methods and call the correct methods on the PrintExtent, because these were also renamed in r2327.


Modified: extensions/geoext.ux/ux/SimplePrint/lib/GeoExt.ux/SimplePrint.js
===================================================================
--- extensions/geoext.ux/ux/SimplePrint/lib/GeoExt.ux/SimplePrint.js	2010-09-10 13:52:49 UTC (rev 2327)
+++ extensions/geoext.ux/ux/SimplePrint/lib/GeoExt.ux/SimplePrint.js	2010-09-10 13:53:40 UTC (rev 2328)
@@ -139,19 +139,19 @@
         }        
 
         //for accordion
-        this.on('expand', this.setUp, this);
-        this.on('collapse', this.tearDown, this);
+        this.on('expand', this.showExtent, this);
+        this.on('collapse', this.hideExtent, this);
 
         //for tabs
-        this.on('activate', this.setUp, this);
-        this.on('deactivate', this.tearDown, this);
+        this.on('activate', this.showExtent, this);
+        this.on('deactivate', this.hideExtent, this);
 
         //for manual enable/disable
-        this.on('enable', this.setUp, this);
-        this.on('disable', this.tearDown, this);
+        this.on('enable', this.showExtent, this);
+        this.on('disable', this.hideExtent, this);
 
         //for use in an Ext.Window with closeAction close
-        this.on('destroy', this.tearDown, this);
+        this.on('destroy', this.hideExtent, this);
     },
     
     /** private: method[initForm]
@@ -249,18 +249,18 @@
         GeoExt.ux.SimplePrint.superclass.beforeDestroy.apply(this, arguments);
     },
 
-    /** private: method[setUp]
+    /** private: method[showExtent]
      * Handler for the panel's expand/activate/enable event
      */
-    setUp: function() {
-        this.printExtent.setUp();
+    showExtent: function() {
+        this.printExtent.show();
     },
 
-    /** private: method[tearDown]
+    /** private: method[hideExtent]
      * Handler for the panel's collapse/deactivate/disable/destroy event
      */
-    tearDown: function() {
-        this.printExtent.tearDown();
+    hideExtent: function() {
+        this.printExtent.hide();
     }
 });
 



More information about the Commits mailing list