Skip to content

Commit

Permalink
(fix) Bind context directly to function
Browse files Browse the repository at this point in the history
  • Loading branch information
p-herbert committed Nov 8, 2018
1 parent 39b5c3b commit 645a7d0
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).bind(_this);
_this._dragStartTimer = setTimeout(dragStartFn.bind(_this), options.delay);
} else {
dragStartFn();
}
Expand Down

0 comments on commit 645a7d0

Please sign in to comment.