Browse Source

_anonymous is an internal option.

Evan You 11 years ago
parent
commit
cd8d44e5b4
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/directives/if.js
  2. 1 1
      src/instance/init.js

+ 1 - 1
src/directives/if.js

@@ -43,7 +43,7 @@ module.exports = {
     this.childVM = this.vm.$addChild({
       el: this.el,
       parent: this.vm,
-      anonymous: true
+      _anonymous: true
     })
   },
 

+ 1 - 1
src/instance/init.js

@@ -43,7 +43,7 @@ exports._init = function (options) {
 
   // anonymous instances are created by flow-control
   // directives such as v-if and v-repeat
-  this._isAnonymous = options.anonymous
+  this._isAnonymous = options._anonymous
 
   // merge options.
   this.$options = mergeOptions(