|
|
@ -455,7 +455,7 @@ export default class ElementWrapper extends Wrapper {
|
|
|
|
function ${handler}() {
|
|
|
|
function ${handler}() {
|
|
|
|
${animation_frame && deindent`
|
|
|
|
${animation_frame && deindent`
|
|
|
|
cancelAnimationFrame(${animation_frame});
|
|
|
|
cancelAnimationFrame(${animation_frame});
|
|
|
|
if (!${this.var}.paused) ${animation_frame} = requestAnimationFrame(${handler});`}
|
|
|
|
if (!${this.var}.paused) ${animation_frame} = @raf(${handler});`}
|
|
|
|
${needs_lock && `${lock} = true;`}
|
|
|
|
${needs_lock && `${lock} = true;`}
|
|
|
|
ctx.${handler}.call(${this.var}${contextual_dependencies.size > 0 ? ', ctx' : ''});
|
|
|
|
ctx.${handler}.call(${this.var}${contextual_dependencies.size > 0 ? ', ctx' : ''});
|
|
|
|
}
|
|
|
|
}
|
|
|
|