Browse Source

add vm annotation in init

Evan You 10 years ago
parent
commit
39e42f503c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/core/instance/init.js

+ 1 - 1
src/core/instance/init.js

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