[BugFix] visibilitychanged listener is not unregistered on deactivation of Strategy/Refresh.
This commit is contained in:
@@ -79,6 +79,10 @@ OpenLayers.Strategy.Refresh = OpenLayers.Class(OpenLayers.Strategy, {
|
|||||||
var deactivated = OpenLayers.Strategy.prototype.deactivate.call(this);
|
var deactivated = OpenLayers.Strategy.prototype.deactivate.call(this);
|
||||||
if(deactivated) {
|
if(deactivated) {
|
||||||
this.stop();
|
this.stop();
|
||||||
|
this.layer.events.un({
|
||||||
|
"visibilitychanged": this.reset,
|
||||||
|
scope: this
|
||||||
|
});
|
||||||
}
|
}
|
||||||
return deactivated;
|
return deactivated;
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user