Set geometry to null if no geometry given

This commit is contained in:
Tom Payne
2013-12-07 19:51:54 +01:00
parent 1ae13f152d
commit 554e17ac22
2 changed files with 4 additions and 2 deletions

View File

@@ -251,8 +251,8 @@ ol.geom.Geometry.prototype.setLayout =
ol.geom.Geometry.prototype.transform = function(transformFn) {
if (!goog.isNull(this.flatCoordinates)) {
transformFn(this.flatCoordinates, this.flatCoordinates, this.stride);
this.dispatchChangeEvent();
}
this.dispatchChangeEvent();
};