Make use of goog.array.remove

This commit is contained in:
tsauerwein
2014-03-13 13:19:56 +01:00
parent debdc26fd2
commit 68fa5fb9ce

View File

@@ -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);
}
};