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
+1 -3
View File
@@ -325,11 +325,9 @@ OpenLayers.Handler.Feature = OpenLayers.Class(OpenLayers.Handler, {
// we enter handle. Yes, a bit hackish... // we enter handle. Yes, a bit hackish...
this.feature = null; this.feature = null;
} }
} else { } else if(this.lastFeature && (previouslyIn || click)) {
if(this.lastFeature && (previouslyIn || click)) {
this.triggerCallback(type, 'out', [this.lastFeature]); this.triggerCallback(type, 'out', [this.lastFeature]);
} }
}
return handled; return handled;
}, },