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:
@@ -478,12 +478,12 @@ OpenLayers.Map.prototype = {
|
||||
// (must be done before setting this.center to new value)
|
||||
this.centerLayerContainer(lonlat);
|
||||
}
|
||||
this.center = lonlat.copyOf();
|
||||
this.center = lonlat.clone();
|
||||
}
|
||||
|
||||
// (re)set the layerContainerDiv's location
|
||||
if ((zoomChanged) || (this.layerContainerOrigin == null)) {
|
||||
this.layerContainerOrigin = this.center.copyOf();
|
||||
this.layerContainerOrigin = this.center.clone();
|
||||
this.layerContainerDiv.style.left = "0px";
|
||||
this.layerContainerDiv.style.top = "0px";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user