diff --git a/src/generators/dom/index.ts b/src/generators/dom/index.ts index 554442e719..79fc94f2ee 100644 --- a/src/generators/dom/index.ts +++ b/src/generators/dom/index.ts @@ -212,7 +212,7 @@ export default function dom( // this._bindings = []; this._beforecreate = []; this._oncreate = [${templateProperties.oncreate && `oncreate`}]; - this._postcreate = []; + this._aftercreate = []; } ${templateProperties.oncreate && deindent` @@ -239,7 +239,7 @@ export default function dom( @callAll(this._beforecreate); @callAll(this._oncreate); - @callAll(this._postcreate); + @callAll(this._aftercreate); } @assign( ${prototypeBase}, ${proto}); diff --git a/src/generators/dom/visitors/Element/addTransitions.ts b/src/generators/dom/visitors/Element/addTransitions.ts index fa8e97013f..889cf1eb0b 100644 --- a/src/generators/dom/visitors/Element/addTransitions.ts +++ b/src/generators/dom/visitors/Element/addTransitions.ts @@ -23,7 +23,7 @@ export default function addTransitions( const fn = `@template.transitions.${intro.name}`; block.builders.intro.addBlock(deindent` - #component._root._postcreate.push( function () { + #component._root._aftercreate.push( function () { if ( !${name} ) ${name} = @wrapTransition( #component, ${state.name}, ${fn}, ${snippet}, true, null ); ${name}.run( true, function () { #component.fire( 'intro.end', { node: ${state.name} }); @@ -58,7 +58,7 @@ export default function addTransitions( } block.builders.intro.addBlock(deindent` - #component._root._postcreate.push( function () { + #component._root._aftercreate.push( function () { ${introName} = @wrapTransition( #component, ${state.name}, ${fn}, ${snippet}, true, null ); ${introName}.run( true, function () { #component.fire( 'intro.end', { node: ${state.name} }); diff --git a/src/shared/index.js b/src/shared/index.js index 6119edabb6..35d5fe8c96 100644 --- a/src/shared/index.js +++ b/src/shared/index.js @@ -108,7 +108,7 @@ export function set(newState) { this._set(assign({}, newState)); callAll(this._root._beforecreate); callAll(this._root._oncreate); - callAll(this._root._postcreate); + callAll(this._root._aftercreate); } export function callAll(fns) {