fix methods + prototype assignment

pull/1282/head
Luke Edwards 7 years ago
parent aa8f57d001
commit 688ecf754e

@ -159,9 +159,9 @@ export default function dom(
? 'svelte/shared.js'
: options.shared || '';
const prototypeBase =
`${name}.prototype` +
(templateProperties.methods ? `, %methods` : '');
let prototypeBase = `${name}.prototype`;
templateProperties.methods && (prototypeBase = `@assign(${prototypeBase}, %methods)`);
const proto = sharedPath
? `@proto`
: deindent`

Loading…
Cancel
Save