You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 29, 2019. It is now read-only.
The current implementation incorrectly converts arguments collection into args array. As the result original function is invoked without arguments even if debounced function is called with some.
Only the little thing is missing Array.prototype.slice.call(arguments) instead of Array.prototype.slice(arguments). Try adding call in the demo above to see how it should work.
The text was updated successfully, but these errors were encountered:
dfsq
pushed a commit
to dfsq/bootstrap
that referenced
this issue
Nov 10, 2015
The current implementation incorrectly converts
arguments
collection intoargs
array. As the result original function is invoked without arguments even if debounced function is called with some.Here is the demo with the debounce code from original commit.
http://plnkr.co/edit/f1kCAlHOcVznlv3Yh5IG?p=preview
Only the little thing is missing
Array.prototype.slice.call(arguments)
instead ofArray.prototype.slice(arguments)
. Try addingcall
in the demo above to see how it should work.The text was updated successfully, but these errors were encountered: