We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acb9781 commit 290979bCopy full SHA for 290979b
src/lib/functionprototype.js
@@ -1,6 +1,11 @@
1
/**
2
* Throttle the function to run at most every delay ms
3
* @argument delay {Number}
4
+ *
5
+ * Note: Throttled methods are argument-less because we don't know which set of
6
+ * arguments ( among the ones passed to all the throttled calls ) to pass to the
7
+ * method it is eventually called. Instead they should use a state or context
8
+ * variable of their scope.
9
*/
10
Function.prototype.throttle || (Function.prototype.throttle = function(delay)
11
{
0 commit comments