Skip to content

Commit

Permalink
Merge pull request SortableJS#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 b6d00ad + 65a4b90 commit 8ddcb8d
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 8ddcb8d

Please sign in to comment.