OpenLayers OpenLayers

Changeset 1228

Show
Ignore:
Timestamp:
08/16/06 02:26:12 (4 years ago)
Author:
euzuro
Message:

remove deprecated methods for 2.0 release. Documentation available at ReleaseNotes2.0

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/lib/OpenLayers/BaseTypes.js

    r1206 r1228  
    4545 
    4646    /** 
    47      * @deprecated 
    48      *  
    49      * @type OpenLayers.Pixel 
    50      */ 
    51     copyOf:function() { 
    52         return this.clone(); 
    53     }, 
    54          
    55     /** 
    5647     * @type OpenLayers.Pixel 
    5748     */ 
     
    147138 
    148139    /**  
    149      * @deprecated 
    150      *  
    151      * @return New OpenLayers.Size object with the same w and h values 
    152      * @type OpenLayers.Size 
    153      */ 
    154     copyOf:function() { 
    155         return this.clone(); 
    156     }, 
    157  
    158     /**  
    159140     * @return New OpenLayers.Size object with the same w and h values 
    160141     * @type OpenLayers.Size 
     
    236217 
    237218    /**  
    238      * @deprecated 
    239      *  
    240      * @return New OpenLayers.LonLat object with the same lon and lat values 
    241      * @type OpenLayers.LonLat 
    242      */ 
    243     copyOf:function() { 
    244         return this.clone(); 
    245     }, 
    246  
    247     /**  
    248219     * @return New OpenLayers.LonLat object with the same lon and lat values 
    249220     * @type OpenLayers.LonLat 
     
    349320        this.right = right; 
    350321        this.top = top; 
    351     }, 
    352  
    353     /** 
    354      * @deprecated 
    355      *  
    356      * @returns A fresh copy of the bounds 
    357      * @type OpenLayers.Bounds 
    358      */ 
    359     copyOf:function() { 
    360         return this.clone(); 
    361322    }, 
    362323 
     
    702663    return this; 
    703664} 
    704  
    705 /** 
    706  * @deprecated 
    707  *  
    708  * @returns A fresh copy of the array 
    709  * @type Array 
    710  */ 
    711 Array.prototype.copyOf = function() { 
    712     return this.clone(); 
    713 }; 
    714665 
    715666/** 
  • trunk/openlayers/lib/OpenLayers/Layer/Grid.js

    r1206 r1228  
    8989    }, 
    9090 
    91     /** 
    92      * @deprecated User should just set the 'tileSize' via options 
    93      *  
    94      * @param {OpenLayers.Size} size 
    95      */ 
    96     setTileSize: function (size) { 
    97         if (size) { 
    98             this.tileSize = size.clone(); 
    99         } 
    100     }, 
    101      
    10291    /**  
    10392     * @param {String} tileID 
  • trunk/openlayers/lib/OpenLayers/Layer/HTTPRequest.js

    r1206 r1228  
    7878    setUrl: function(newUrl) { 
    7979        this.url = newUrl; 
    80     }, 
    81  
    82      
    83     /**  Deprecated wrapper for mergeNewParams() just so as to not break  
    84      *    anyone's code who might be using this 
    85      *  
    86      * @deprecated 
    87      * @param {Object} newParams 
    88      */ 
    89     changeParams:function(newParams) { 
    90         this.mergeNewParams(newParams); 
    9180    }, 
    9281 
  • trunk/openlayers/lib/OpenLayers/Map.js

    r1227 r1228  
    707707        return maxResolution; 
    708708    }, 
    709      
    710     /** Wrapper to maintain defined API functionality.  
    711      *    getMaxExtent() should be used from now on. 
    712      *  
    713      * @deprecated 
    714      */ 
    715     getFullExtent: function() { 
    716         return this.getMaxExtent(); 
    717     }, 
    718      
     709         
    719710    /** 
    720711    * @type OpenLayers.Bounds 
     
    886877    }, 
    887878 
    888     /** Wrapper to maintain defined API functionality.  
    889      *    zoomToMaxExtent() should be used from now on. 
    890      *  
    891      * @deprecated 
    892      */ 
    893     zoomToFullExtent: function() { 
    894         this.zoomToMaxExtent(); 
    895     }, 
    896  
    897879    /** Zoom to the full extent and recenter. 
    898880     */ 
  • trunk/openlayers/tests/test_Layer_HTTPRequest.html

    r941 r1228  
    6363        layer.setUrl("foo"); 
    6464        t.eq( layer.url, "foo", "setUrl() works"); 
    65     } 
    66  
    67  
    68     /** 
    69      * @deprecated 
    70      */ 
    71     function test_04_Layer_HTTPRequest_changeParams (t) { 
    72         t.plan( 3 ); 
    73  
    74         layer = new OpenLayers.Layer.HTTPRequest(name, url, params, options); 
    75          
    76         var newParams = { layers: 'sooper',  
    77                           chickpeas: 'image/png'}; 
    78  
    79         layer.changeParams(newParams); 
    80          
    81         t.eq( layer.params.layers, "sooper", "changeParams() overwrites well"); 
    82         t.eq( layer.params.chickpeas, "image/png", "changeParams() adds well"); 
    83  
    84         newParams.chickpeas = 151; 
    85  
    86         t.eq( layer.params.chickpeas, "image/png", "changeParams() makes clean copy of hash"); 
    87  
    88  
    8965    } 
    9066