Don't try to be too clever with size changes

This commit is contained in:
Tom Payne
2012-09-27 14:00:27 +02:00
parent 7625607fd1
commit 7dbc70bcac

View File

@@ -718,10 +718,7 @@ goog.exportProperty(
* @param {ol.Size} size Size.
*/
ol.Map.prototype.setSize = function(size) {
var currentSize = this.getSize();
if (!goog.isDef(currentSize) || !currentSize.equals(size)) {
this.set(ol.MapProperty.SIZE, size);
}
this.set(ol.MapProperty.SIZE, size);
};
goog.exportProperty(
ol.Map.prototype,