Static
debounceStatic
deferDefers the execution of the given method until the given event has been fired
The source which fires the event for which we are waiting for
Name of the event for which we listen to
The method which should be executed after the event has been fired
Optional
args: any[]Arguments which should be passed to the method
Optional
methodScope: anyThe scope in which the method should be called.
The eventSrc if not given.
Static
interceptBasically the same as Ext.Function.interceptAfter with one difference:
The Ext function returns the return value of the intercepter instead of the one from the original function
Optional
scope: objectStatic
interceptBasically the same as Ext.Function.interceptBefore with one difference:
The Ext function returns the return value of the intercepter instead of the one from the original function
Optional
scope: objectStatic
throttleReturns a function, that will be delayed if it has already been called previously within a certain time.
Therefore it can be used to reduce the amount of function according to the time grid, defined by the wait
parameter.
Generated using TypeDoc
Returns a function, that, as long as it continues to be invoked, will not be triggered.
The function will be called after it stops being called for
wait
milliseconds.If
immediate
is passed, trigger the function on the leading edge, instead of the trailing.Taken from David Walsh's blog (who took it from underscore.js):
https://davidwalsh.name/javascript-debounce-function