|
@@ -11,7 +11,7 @@ let uid = 0
|
|
|
|
|
|
|
|
export function initMixin (Vue: Class<Component>) {
|
|
export function initMixin (Vue: Class<Component>) {
|
|
|
Vue.prototype._init = function (options?: Object) {
|
|
Vue.prototype._init = function (options?: Object) {
|
|
|
- const vm = this
|
|
|
|
|
|
|
+ const vm: Component = this
|
|
|
// a uid
|
|
// a uid
|
|
|
vm._uid = uid++
|
|
vm._uid = uid++
|
|
|
// a flag to avoid this being observed
|
|
// a flag to avoid this being observed
|