Remove unneeded map.isDef call

This commit is contained in:
Frederic Junod
2015-03-05 18:12:23 +01:00
parent daf81b9c26
commit 0d979e37b8

View File

@@ -246,10 +246,6 @@ ol.interaction.Draw.prototype.setMap = function(map) {
* @api
*/
ol.interaction.Draw.handleEvent = function(mapBrowserEvent) {
var map = mapBrowserEvent.map;
if (!map.isDef()) {
return true;
}
var pass = true;
if (mapBrowserEvent.type === ol.MapBrowserEvent.EventType.POINTERMOVE) {
pass = this.handlePointerMove_(mapBrowserEvent);