Return cloned size rather then reference

This commit is contained in:
Tom Payne
2012-07-14 16:12:24 +02:00
parent 9e8c8ad316
commit c59e6e1462

View File

@@ -167,7 +167,7 @@ ol.Map.prototype.getResolutionForExtent = function(extent) {
* @return {goog.math.Size} Size.
*/
ol.Map.prototype.getSize = function() {
return this.size_;
return this.size_.clone();
};