Update lib/OpenLayers/Handler/Feature.js

simplify code a little
This commit is contained in:
mosesonline
2012-12-07 12:46:28 +01:00
parent cb1c3a834a
commit 5bffb3dea3

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