Changeset 2060


Ignore:
Timestamp:
03/29/10 14:37:31 (8 years ago)
Author:
pgiraud
Message:

remove console.log, and added missing semi-colon

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/pgiraud/playground/print-multipage/geoext/lib/GeoExt/plugins/PrintExtent.js

    r2033 r2060  
    217217     */
    218218    selectPage: function(page) {
    219         this.control.setFeature(page.feature);
     219        this.control.active && this.control.setFeature(page.feature);
    220220        // FIXME raise the feature up so that it is on top
    221221    },
     
    272272        var map = this.map;
    273273
    274         console.log(this.layer);
    275274        for(var len = this.pages.length - 1, i = len; i>=0; i--) {
    276275            this.removePage(this.pages[i]);
     
    282281        if(map && map.events &&
    283282           control && control.events) {
    284             control.destroy()
     283            control.destroy();
    285284        }
    286285
     
    373372    updateBox: function() {
    374373        var page = this.page;
    375         this.control.setFeature(page.feature, {rotation: -page.rotation});
     374        this.control.active &&
     375            this.control.setFeature(page.feature, {rotation: -page.rotation});
    376376    },
    377377
     
    381381    onPageChange: function(page, mods) {
    382382        if(!this._updating) {
    383             this.control.setFeature(page.feature, {rotation: -page.rotation});
     383            this.control.active &&
     384                this.control.setFeature(page.feature, {rotation: -page.rotation});
    384385        }
    385386    }
Note: See TracChangeset for help on using the changeset viewer.