Merge pull request #1760 from ekhaled/gh-1653-followup

followup fix to #1653
pull/7738/head
Rich Harris 7 years ago committed by GitHub
commit b009e501e7

@ -831,7 +831,7 @@ export default class ElementWrapper extends Wrapper {
} }
block.builders.destroy.addLine( block.builders.destroy.addLine(
`if (typeof ${name}.destroy === 'function') ${name}.destroy.call(#component);` `if (${name} && typeof ${name}.destroy === 'function') ${name}.destroy.call(#component);`
); );
}); });
} }

Loading…
Cancel
Save