return a copy of the mapsize, not the mapsize itself. this will hopefully prevent some nasty bugs.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1504 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -458,7 +458,11 @@ OpenLayers.Map.prototype = {
|
|||||||
* @returns {OpenLayers.Size}
|
* @returns {OpenLayers.Size}
|
||||||
*/
|
*/
|
||||||
getSize: function () {
|
getSize: function () {
|
||||||
return this.size;
|
var size = null;
|
||||||
|
if (this.size != null) {
|
||||||
|
size = this.size.clone();
|
||||||
|
}
|
||||||
|
return size;
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user