[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);
|
||||
if(deactivated) {
|
||||
this.stop();
|
||||
this.layer.events.un({
|
||||
"visibilitychanged": this.reset,
|
||||
scope: this
|
||||
});
|
||||
}
|
||||
return deactivated;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user