From 5bffb3dea3ac23cc50a8ee88c8e2ff58c11fc2f5 Mon Sep 17 00:00:00 2001 From: mosesonline Date: Fri, 7 Dec 2012 12:46:28 +0100 Subject: [PATCH] Update lib/OpenLayers/Handler/Feature.js simplify code a little --- lib/OpenLayers/Handler/Feature.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/OpenLayers/Handler/Feature.js b/lib/OpenLayers/Handler/Feature.js index 63d64b1f63..c71d141151 100644 --- a/lib/OpenLayers/Handler/Feature.js +++ b/lib/OpenLayers/Handler/Feature.js @@ -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; },