[Commits] r2060 - sandbox/pgiraud/playground/print-multipage/geoext/lib/GeoExt/plugins

commits at geoext.org commits at geoext.org
Mon Mar 29 14:37:32 CEST 2010


Author: pgiraud
Date: 2010-03-29 14:37:31 +0200 (Mon, 29 Mar 2010)
New Revision: 2060

Modified:
   sandbox/pgiraud/playground/print-multipage/geoext/lib/GeoExt/plugins/PrintExtent.js
Log:
remove console.log, and added missing semi-colon

Modified: sandbox/pgiraud/playground/print-multipage/geoext/lib/GeoExt/plugins/PrintExtent.js
===================================================================
--- sandbox/pgiraud/playground/print-multipage/geoext/lib/GeoExt/plugins/PrintExtent.js	2010-03-29 11:33:09 UTC (rev 2059)
+++ sandbox/pgiraud/playground/print-multipage/geoext/lib/GeoExt/plugins/PrintExtent.js	2010-03-29 12:37:31 UTC (rev 2060)
@@ -216,7 +216,7 @@
      *  :param page: :class:`GeoExt.data.PrintPage` The page to select
      */
     selectPage: function(page) {
-        this.control.setFeature(page.feature);
+        this.control.active && this.control.setFeature(page.feature);
         // FIXME raise the feature up so that it is on top
     },
 
@@ -271,7 +271,6 @@
 
         var map = this.map;
 
-        console.log(this.layer);
         for(var len = this.pages.length - 1, i = len; i>=0; i--) {
             this.removePage(this.pages[i]);
         }
@@ -281,7 +280,7 @@
         var control = this.control;
         if(map && map.events &&
            control && control.events) {
-            control.destroy()
+            control.destroy();
         }
 
         var layer = this.layer;
@@ -372,7 +371,8 @@
      */
     updateBox: function() {
         var page = this.page;
-        this.control.setFeature(page.feature, {rotation: -page.rotation});
+        this.control.active &&
+            this.control.setFeature(page.feature, {rotation: -page.rotation});
     },
 
     /** private: method[onPageChange]
@@ -380,7 +380,8 @@
      */
     onPageChange: function(page, mods) {
         if(!this._updating) {
-            this.control.setFeature(page.feature, {rotation: -page.rotation});
+            this.control.active &&
+                this.control.setFeature(page.feature, {rotation: -page.rotation});
         }
     }
 });



More information about the Commits mailing list