* Creates an animation vsync task. This operation can only run when * animations are allowed. Otherwise, this closure returns `false` and exits. * @param {!Node} contextNode * @param {!VsyncTaskSpecDef} task * @return {function(!VsyncStateDef=):boolean}
(contextNode, task)
| 318 | * @return {function(!VsyncStateDef=):boolean} |
| 319 | */ |
| 320 | createAnimTask(contextNode, task) { |
| 321 | return /** @type {function(!VsyncStateDef=):boolean} */ ( |
| 322 | (opt_state) => { |
| 323 | return this.runAnim(contextNode, task, opt_state); |
| 324 | } |
| 325 | ); |
| 326 | } |
| 327 | |
| 328 | /** |
| 329 | * Runs the series of mutates until the mutator returns a false value. |
no test coverage detected