|
@@ -1,3 +1,4 @@
|
|
|
|
|
+import { initProxy } from './proxy'
|
|
|
import { initState, stateMixin } from './state'
|
|
import { initState, stateMixin } from './state'
|
|
|
import { initRender, renderMixin } from './render'
|
|
import { initRender, renderMixin } from './render'
|
|
|
import { initEvents, eventsMixin } from './events'
|
|
import { initEvents, eventsMixin } from './events'
|
|
@@ -21,6 +22,11 @@ Vue.prototype._init = function (options) {
|
|
|
options || {},
|
|
options || {},
|
|
|
this
|
|
this
|
|
|
)
|
|
)
|
|
|
|
|
+ if (process.env.NODE_ENV !== 'production') {
|
|
|
|
|
+ initProxy(this)
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this._renderProxy = this
|
|
|
|
|
+ }
|
|
|
initLifecycle(this)
|
|
initLifecycle(this)
|
|
|
initEvents(this)
|
|
initEvents(this)
|
|
|
callHook(this, 'init')
|
|
callHook(this, 'init')
|