replace all usage of copyOf() with clone(). Now copyOf() is officially deprecated and unused. supported only if users out there have used it, but we can phase it out in the next official release.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@961 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -70,7 +70,7 @@ OpenLayers.Layer.Grid.prototype =
|
||||
|
||||
// copy/set any non-init, non-simple values here
|
||||
if (this.tileSize != null) {
|
||||
obj.tileSize = this.tileSize.copyOf();
|
||||
obj.tileSize = this.tileSize.clone();
|
||||
}
|
||||
|
||||
// we do not want to copy reference to grid. that should stay at null
|
||||
@@ -98,7 +98,7 @@ OpenLayers.Layer.Grid.prototype =
|
||||
*/
|
||||
setTileSize: function (size) {
|
||||
if (size) {
|
||||
this.tileSize = size.copyOf();
|
||||
this.tileSize = size.clone();
|
||||
}
|
||||
},
|
||||
|
||||
@@ -357,8 +357,8 @@ OpenLayers.Layer.Grid.prototype =
|
||||
|
||||
for (var i=0; i < modelRow.length; i++) {
|
||||
var modelTile = modelRow[i];
|
||||
var bounds = modelTile.bounds.copyOf();
|
||||
var position = modelTile.position.copyOf();
|
||||
var bounds = modelTile.bounds.clone();
|
||||
var position = modelTile.position.clone();
|
||||
bounds.bottom = bounds.bottom + deltaLat;
|
||||
bounds.top = bounds.top + deltaLat;
|
||||
position.y = position.y + deltaY;
|
||||
@@ -393,8 +393,8 @@ OpenLayers.Layer.Grid.prototype =
|
||||
modelTileIndex = (prepend) ? 0 : (row.length - 1);
|
||||
var modelTile = row[modelTileIndex];
|
||||
|
||||
var bounds = modelTile.bounds.copyOf();
|
||||
var position = modelTile.position.copyOf();
|
||||
var bounds = modelTile.bounds.clone();
|
||||
var position = modelTile.position.clone();
|
||||
bounds.left = bounds.left + deltaLon;
|
||||
bounds.right = bounds.right + deltaLon;
|
||||
position.x = position.x + deltaX;
|
||||
|
||||
@@ -43,7 +43,7 @@ OpenLayers.Layer.WFS.prototype =
|
||||
OpenLayers.Layer.Markers.prototype.initialize.apply(this, newArguments);
|
||||
|
||||
if (options && options['tileSize']) {
|
||||
this.tileSize = options['tileSize'].copyOf();
|
||||
this.tileSize = options['tileSize'].clone();
|
||||
} else {
|
||||
this.tileSize = new OpenLayers.Size(256, 256);
|
||||
}
|
||||
|
||||
@@ -113,7 +113,7 @@ OpenLayers.Layer.WMS.Untiled.prototype =
|
||||
bounds = this.map.getExtent();
|
||||
}
|
||||
|
||||
var size = this.map.getSize().copyOf();
|
||||
var size = this.map.getSize().clone();
|
||||
|
||||
// get the url
|
||||
var url = this.getFullRequestString( {BBOX: bounds.toBBOX(),
|
||||
@@ -186,7 +186,7 @@ OpenLayers.Layer.WMS.Untiled.prototype =
|
||||
*/
|
||||
loadImageDiv: function() {
|
||||
|
||||
var size = this.map.getSize().copyOf();
|
||||
var size = this.map.getSize().clone();
|
||||
var bounds = this.map.getExtent();
|
||||
|
||||
var url = "";
|
||||
|
||||
Reference in New Issue
Block a user