unsubscribe from events on the proper layer
This commit is contained in:
@@ -240,7 +240,7 @@ OpenLayers.Control.Split = OpenLayers.Class(OpenLayers.Control, {
|
|||||||
var deactivated = OpenLayers.Control.prototype.deactivate.call(this);
|
var deactivated = OpenLayers.Control.prototype.deactivate.call(this);
|
||||||
if(deactivated) {
|
if(deactivated) {
|
||||||
if(this.source && this.source.events) {
|
if(this.source && this.source.events) {
|
||||||
this.layer.events.un({
|
this.source.events.un({
|
||||||
sketchcomplete: this.onSketchComplete,
|
sketchcomplete: this.onSketchComplete,
|
||||||
afterfeaturemodified: this.afterFeatureModified,
|
afterfeaturemodified: this.afterFeatureModified,
|
||||||
scope: this
|
scope: this
|
||||||
|
|||||||
Reference in New Issue
Block a user