Merge pull request #805 from mosesonline/unselectAllFix

unselectAll on removing layer fix
This commit is contained in:
ahocevar
2012-12-24 06:17:04 -08:00
3 changed files with 38 additions and 10 deletions

View File

@@ -325,10 +325,8 @@ OpenLayers.Handler.Feature = OpenLayers.Class(OpenLayers.Handler, {
// we enter handle. Yes, a bit hackish...
this.feature = null;
}
} else {
if(this.lastFeature && (previouslyIn || click)) {
this.triggerCallback(type, 'out', [this.lastFeature]);
}
} else if(this.lastFeature && (previouslyIn || click)) {
this.triggerCallback(type, 'out', [this.lastFeature]);
}
return handled;
},