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' ? 'svelte/shared.js'
: options.shared || ''; : options.shared || '';
const prototypeBase = let prototypeBase = `${name}.prototype`;
`${name}.prototype` + templateProperties.methods && (prototypeBase = `@assign(${prototypeBase}, %methods)`);
(templateProperties.methods ? `, %methods` : '');
const proto = sharedPath const proto = sharedPath
? `@proto` ? `@proto`
: deindent` : deindent`

Loading…
Cancel
Save