pull/1210/head
ekhaled 7 years ago
parent 18d3313838
commit e2d50617c2

@ -280,7 +280,7 @@ export default function dom(
${options.dev && `if (options.hydrate) throw new Error("options.hydrate only works if the component was compiled with the \`hydratable: true\` option");`} ${options.dev && `if (options.hydrate) throw new Error("options.hydrate only works if the component was compiled with the \`hydratable: true\` option");`}
this._fragment.c(); this._fragment.c();
`} `}
this._fragment.${block.hasIntroMethod ? 'i' : 'm'}(options.target, options.anchor || null); this._mount(options.target, options.anchor || null);
${(generator.hasComponents || generator.hasComplexBindings || templateProperties.oncreate || generator.hasIntroTransitions) && deindent` ${(generator.hasComponents || generator.hasComplexBindings || templateProperties.oncreate || generator.hasIntroTransitions) && deindent`
${generator.hasComponents && `this._lock = true;`} ${generator.hasComponents && `this._lock = true;`}

@ -185,7 +185,7 @@ export function callAll(fns) {
} }
export function _mount(target, anchor) { export function _mount(target, anchor) {
this._fragment.m(target, anchor); this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor);
} }
export function _unmount() { export function _unmount() {

Loading…
Cancel
Save