OpenLayers OpenLayers

Changeset 6451

Show
Ignore:
Timestamp:
03/06/08 16:43:05 (10 months ago)
Author:
pagameba
Message:

change supportedTransitions to SUPPORTED_TRANSITIONS to be more obviously an immutable property

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/pagameba/transition-resize/lib/OpenLayers/Layer.js

    r6450 r6451  
    273273     
    274274    /** 
    275      * Property: supportedTransitions 
     275     * Property: SUPPORTED_TRANSITIONS 
    276276     * {Array} An immutable (that means don't change it!) list of supported  
    277277     *     transitionEffect values. 
    278278     */ 
    279     supportedTransitions: ['resize'], 
     279    SUPPORTED_TRANSITIONS: ['resize'], 
    280280     
    281281    /** 
  • sandbox/pagameba/transition-resize/lib/OpenLayers/Tile.js

    r6450 r6451  
    144144     */ 
    145145    destroy:function() { 
    146         if (OpenLayers.Util.indexOf(this.layer.supportedTransitions,  
     146        if (OpenLayers.Util.indexOf(this.layer.SUPPORTED_TRANSITIONS,  
    147147                this.layer.transitionEffect) != -1) { 
    148148            this.layer.events.unregister("loadend", this, this.resetBackBuffer); 
     
    210210        var drawTile = (withinMaxExtent || this.layer.displayOutsideMaxExtent); 
    211211 
    212         if (OpenLayers.Util.indexOf(this.layer.supportedTransitions, this.layer.transitionEffect) != -1) { 
     212        if (OpenLayers.Util.indexOf(this.layer.SUPPORTED_TRANSITIONS, this.layer.transitionEffect) != -1) { 
    213213            if (drawTile) { 
    214214                //we use a clone of this tile to create a double buffer for visual