|
|
@ -174,11 +174,11 @@ export default function createBinding ( generator, node, attribute, current, loc
|
|
|
|
|
|
|
|
|
|
|
|
node.initialUpdate = updateElement;
|
|
|
|
node.initialUpdate = updateElement;
|
|
|
|
|
|
|
|
|
|
|
|
local.update.addLine(
|
|
|
|
local.update.addLine( deindent`
|
|
|
|
`if ( !${local.name}_updating ) {
|
|
|
|
if ( !${local.name}_updating ) {
|
|
|
|
${updateElement}
|
|
|
|
${updateElement}
|
|
|
|
}`
|
|
|
|
}
|
|
|
|
);
|
|
|
|
` );
|
|
|
|
|
|
|
|
|
|
|
|
generator.current.builders.teardown.addLine( deindent`
|
|
|
|
generator.current.builders.teardown.addLine( deindent`
|
|
|
|
${generator.helper( 'removeEventListener' )}( ${local.name}, '${eventName}', ${handler} );
|
|
|
|
${generator.helper( 'removeEventListener' )}( ${local.name}, '${eventName}', ${handler} );
|
|
|
|