Add more properties to destroy in destroy()
This commit is contained in:
@@ -603,10 +603,16 @@ OpenLayers.Control.TransformFeature = OpenLayers.Class(OpenLayers.Control, {
|
||||
geom._rotationHandle && geom._rotationHandle.destroy();
|
||||
geom._rotationHandle = null;
|
||||
}
|
||||
this.center = null;
|
||||
this.feature = null;
|
||||
this.handles = null;
|
||||
this.rotationHandleSymbolizer = null;
|
||||
this.rotationHandles = null;
|
||||
this.box.destroy();
|
||||
this.box = null;
|
||||
this.layer = null;
|
||||
this.dragControl.destroy();
|
||||
this.dragControl = null;
|
||||
OpenLayers.Control.prototype.destroy.apply(this, arguments);
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user