Update lib/OpenLayers/Handler/Feature.js
simplify code a little
This commit is contained in:
@@ -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;
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user