Make use of goog.array.remove
This commit is contained in:
@@ -449,10 +449,7 @@ ol.pointer.TouchSource.prototype.dedupSynthMouse_ = function(inEvent) {
|
|||||||
|
|
||||||
goog.global.setTimeout(function() {
|
goog.global.setTimeout(function() {
|
||||||
// remove touch after timeout
|
// remove touch after timeout
|
||||||
var i = lts.indexOf(lt);
|
goog.array.remove(lts, lt);
|
||||||
if (i > -1) {
|
|
||||||
lts.splice(i, 1);
|
|
||||||
}
|
|
||||||
}, ol.pointer.TouchSource.DEDUP_TIMEOUT);
|
}, ol.pointer.TouchSource.DEDUP_TIMEOUT);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user