Remove unnecessary call to goog.bind
This commit is contained in:
@@ -437,12 +437,13 @@ ol.pointer.TouchSource.prototype.dedupSynthMouse_ = function(inEvent) {
|
|||||||
// remember x/y of last touch
|
// remember x/y of last touch
|
||||||
var lt = new goog.math.Coordinate(t.clientX, t.clientY);
|
var lt = new goog.math.Coordinate(t.clientX, t.clientY);
|
||||||
lts.push(lt);
|
lts.push(lt);
|
||||||
var fn = goog.bind(function(lts, lt) {
|
|
||||||
|
goog.global.setTimeout(function() {
|
||||||
|
// remove touch after timeout
|
||||||
var i = lts.indexOf(lt);
|
var i = lts.indexOf(lt);
|
||||||
if (i > -1) {
|
if (i > -1) {
|
||||||
lts.splice(i, 1);
|
lts.splice(i, 1);
|
||||||
}
|
}
|
||||||
}, null, lts, lt);
|
}, this.DEDUP_TIMEOUT);
|
||||||
goog.global.setTimeout(fn, this.DEDUP_TIMEOUT);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user