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
+2 -4
View File
@@ -325,10 +325,8 @@ 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;
}, },