Merge pull request #1258 from KTastrophy/fix-1245

added "_this" reference for setTimeout
This commit is contained in:
Juriy Zaytsev 2014-04-03 11:31:55 -04:00
commit 99d7b1ec2e

View file

@ -180,8 +180,9 @@
if (e.type === 'touchend') {
// Wait 400ms before rebinding mousedown to prevent double triggers
// from touch devices
var _this = this;
setTimeout(function() {
addListener(this.upperCanvasEl, 'mousedown', this._onMouseDown);
addListener(_this.upperCanvasEl, 'mousedown', _this._onMouseDown);
}, 400);
}
},