|
|
@ -431,13 +431,12 @@ export default class Component extends Node {
|
|
|
|
${this.ref && `#component.refs.${this.ref} = ${name};`}
|
|
|
|
${this.ref && `#component.refs.${this.ref} = ${name};`}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
${name} = null;
|
|
|
|
${name} = null;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
${this.ref && deindent`
|
|
|
|
${this.ref && deindent`
|
|
|
|
else if (#component.refs.${this.ref} === ${name}) {
|
|
|
|
if (#component.refs.${this.ref} === ${name}) {
|
|
|
|
#component.refs.${this.ref} = null;
|
|
|
|
#component.refs.${this.ref} = null;
|
|
|
|
}`}
|
|
|
|
}`}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
`);
|
|
|
|
`);
|
|
|
|
|
|
|
|
|
|
|
|
if (updates.length) {
|
|
|
|
if (updates.length) {
|
|
|
|