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:
euzuro
2006-09-26 23:54:59 +00:00
parent 5804cc6cb3
commit e658877014

View File

@@ -458,7 +458,11 @@ OpenLayers.Map.prototype = {
* @returns {OpenLayers.Size}
*/
getSize: function () {
return this.size;
var size = null;
if (this.size != null) {
size = this.size.clone();
}
return size;
},
/**