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