[BugFix] visibilitychanged listener is not unregistered on deactivation of Strategy/Refresh.

This commit is contained in:
mosesonline
2013-03-01 12:44:29 +01:00
parent a1bf41a4de
commit e1e11ab9c6

View File

@@ -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;
},