Skip to content

Commit

Permalink
Merge pull request #1322 from p-herbert/master
Browse files Browse the repository at this point in the history
(fix) Bind context to setTimeout
  • Loading branch information
owen-m1 authored Nov 9, 2018
2 parents bebf1f6 + 645a7d0 commit 4ef871c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sortable.js
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@
_on(ownerDocument, 'touchmove', _this._delayedDragTouchMoveHandler);
options.supportPointer && _on(ownerDocument, 'pointermove', _this._delayedDragTouchMoveHandler);

_this._dragStartTimer = setTimeout(dragStartFn, options.delay);
_this._dragStartTimer = setTimeout(dragStartFn.bind(_this), options.delay);
} else {
dragStartFn();
}
Expand Down

0 comments on commit 4ef871c

Please sign in to comment.