@@ -39,10 +39,13 @@ export function initMixin (Vue: Class<Component>) {
vm._self = vm
initLifecycle(vm)
initEvents(vm)
+ initRender(vm)
callHook(vm, 'beforeCreate')
initState(vm)
callHook(vm, 'created')
- initRender(vm)
+ if (vm.$options.el) {
+ vm.$mount(vm.$options.el)
+ }
}
@@ -40,9 +40,6 @@ export function initRender (vm: Component) {
// normalization is always applied for the public version, used in
// user-written render functions.
vm.$createElement = (a, b, c, d) => createElement(vm, a, b, c, d, true)
- if (vm.$options.el) {
- vm.$mount(vm.$options.el)
- }
export function renderMixin (Vue: Class<Component>) {