Clone should not share bounds

This commit is contained in:
Tim Schaub
2013-09-25 16:14:54 +02:00
parent 3e8ca13882
commit 563918d58d

View File

@@ -25,7 +25,6 @@ ol.geom.Geometry.prototype.dimension;
*/
ol.geom.Geometry.prototype.clone = function() {
var clone = new this.constructor(this.getCoordinates());
clone.bounds_ = this.bounds_;
clone.dimension = this.dimension;
return clone;
};