Changeset 1228
- Timestamp:
- 08/16/06 02:26:12 (4 years ago)
- Files:
-
- trunk/openlayers/lib/OpenLayers/BaseTypes.js (modified) (5 diffs)
- trunk/openlayers/lib/OpenLayers/Layer/Grid.js (modified) (1 diff)
- trunk/openlayers/lib/OpenLayers/Layer/HTTPRequest.js (modified) (1 diff)
- trunk/openlayers/lib/OpenLayers/Map.js (modified) (2 diffs)
- trunk/openlayers/tests/test_Layer_HTTPRequest.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/lib/OpenLayers/BaseTypes.js
r1206 r1228 45 45 46 46 /** 47 * @deprecated48 *49 * @type OpenLayers.Pixel50 */51 copyOf:function() {52 return this.clone();53 },54 55 /**56 47 * @type OpenLayers.Pixel 57 48 */ … … 147 138 148 139 /** 149 * @deprecated150 *151 * @return New OpenLayers.Size object with the same w and h values152 * @type OpenLayers.Size153 */154 copyOf:function() {155 return this.clone();156 },157 158 /**159 140 * @return New OpenLayers.Size object with the same w and h values 160 141 * @type OpenLayers.Size … … 236 217 237 218 /** 238 * @deprecated239 *240 * @return New OpenLayers.LonLat object with the same lon and lat values241 * @type OpenLayers.LonLat242 */243 copyOf:function() {244 return this.clone();245 },246 247 /**248 219 * @return New OpenLayers.LonLat object with the same lon and lat values 249 220 * @type OpenLayers.LonLat … … 349 320 this.right = right; 350 321 this.top = top; 351 },352 353 /**354 * @deprecated355 *356 * @returns A fresh copy of the bounds357 * @type OpenLayers.Bounds358 */359 copyOf:function() {360 return this.clone();361 322 }, 362 323 … … 702 663 return this; 703 664 } 704 705 /**706 * @deprecated707 *708 * @returns A fresh copy of the array709 * @type Array710 */711 Array.prototype.copyOf = function() {712 return this.clone();713 };714 665 715 666 /** trunk/openlayers/lib/OpenLayers/Layer/Grid.js
r1206 r1228 89 89 }, 90 90 91 /**92 * @deprecated User should just set the 'tileSize' via options93 *94 * @param {OpenLayers.Size} size95 */96 setTileSize: function (size) {97 if (size) {98 this.tileSize = size.clone();99 }100 },101 102 91 /** 103 92 * @param {String} tileID trunk/openlayers/lib/OpenLayers/Layer/HTTPRequest.js
r1206 r1228 78 78 setUrl: function(newUrl) { 79 79 this.url = newUrl; 80 },81 82 83 /** Deprecated wrapper for mergeNewParams() just so as to not break84 * anyone's code who might be using this85 *86 * @deprecated87 * @param {Object} newParams88 */89 changeParams:function(newParams) {90 this.mergeNewParams(newParams);91 80 }, 92 81 trunk/openlayers/lib/OpenLayers/Map.js
r1227 r1228 707 707 return maxResolution; 708 708 }, 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 719 710 /** 720 711 * @type OpenLayers.Bounds … … 886 877 }, 887 878 888 /** Wrapper to maintain defined API functionality.889 * zoomToMaxExtent() should be used from now on.890 *891 * @deprecated892 */893 zoomToFullExtent: function() {894 this.zoomToMaxExtent();895 },896 897 879 /** Zoom to the full extent and recenter. 898 880 */ trunk/openlayers/tests/test_Layer_HTTPRequest.html
r941 r1228 63 63 layer.setUrl("foo"); 64 64 t.eq( layer.url, "foo", "setUrl() works"); 65 }66 67 68 /**69 * @deprecated70 */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 89 65 } 90 66
