From 68fa5fb9ced0dc44c6b12e567f208710e2817e22 Mon Sep 17 00:00:00 2001 From: tsauerwein Date: Thu, 13 Mar 2014 13:19:56 +0100 Subject: [PATCH] Make use of goog.array.remove --- src/ol/pointer/touchsource.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/ol/pointer/touchsource.js b/src/ol/pointer/touchsource.js index 76109d0b0e..6ba0822783 100644 --- a/src/ol/pointer/touchsource.js +++ b/src/ol/pointer/touchsource.js @@ -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); } };