Delayable
Properties
2
Properties
2Functions
1
Functions
1Creates a function which will execute once, on the next animation frame. However many time it is called in one event run, it will only be scheduled to run once.
| Parameter | Type | Description |
|---|---|---|
fn | function | String | The function to call, or name of function in this object to call. |
args | Object[] | The argument list to append to those passed to the function. |
thisObj | Object |
|
cancelOutstanding | Boolean | Cancel any outstanding queued invocation upon call. |
A function which can be called multiple times, and will only execute once on the next animation frame
Typedefs
1
Typedefs
1Configuration options available when defining a delayable function.
| Parameter | Type | Description |
|---|---|---|
type | buffer | raf | idle | throttle | Type of delay to use. |
delay | Number | Number of milliseconds to wait before (buffer) or after (throttle) calling the underlying
method. A value of 0 is equivalent to setting |
immediate | Boolean | Set to |
cancelOutstanding | Boolean | Set to |