Evan You 10 лет назад
Родитель
Сommit
bd48eac9cf

+ 0 - 2
src/directives/internal/transition.js

@@ -1,5 +1,3 @@
-// TODO: remove in 1.0.0
-
 var _ = require('../../util')
 var _ = require('../../util')
 var Transition = require('../../transition/transition')
 var Transition = require('../../transition/transition')
 
 

+ 5 - 10
src/directives/public/component.js

@@ -1,5 +1,4 @@
 var _ = require('../../util')
 var _ = require('../../util')
-var config = require('../../config')
 var templateParser = require('../../parsers/template')
 var templateParser = require('../../parsers/template')
 
 
 module.exports = {
 module.exports = {
@@ -11,10 +10,10 @@ module.exports = {
    * Setup. Two possible usages:
    * Setup. Two possible usages:
    *
    *
    * - static:
    * - static:
-   *   v-component="comp"
+   *   <comp> or <div v-component="comp">
    *
    *
    * - dynamic:
    * - dynamic:
-   *   v-component="{{currentView}}"
+   *   <component bind-is="view">
    */
    */
 
 
   bind: function () {
   bind: function () {
@@ -27,13 +26,7 @@ module.exports = {
       this.keepAlive = this.param('keep-alive') != null
       this.keepAlive = this.param('keep-alive') != null
 
 
       // check ref
       // check ref
-      // TODO: only check ref in 1.0.0
-      var ref = this.param(config.prefix + 'ref')
-      /* istanbul ignore if */
-      if (process.env.NODE_ENV !== 'production' && ref) {
-        _.deprecation.V_REF()
-      }
-      this.ref = ref || this.param('ref')
+      this.ref = this.param('ref')
       var refs = (this._scope || this.vm).$
       var refs = (this._scope || this.vm).$
       if (this.ref && !refs.hasOwnProperty(this.ref)) {
       if (this.ref && !refs.hasOwnProperty(this.ref)) {
         _.defineReactive(refs, this.ref, null)
         _.defineReactive(refs, this.ref, null)
@@ -207,6 +200,8 @@ module.exports = {
         _frag: this._frag
         _frag: this._frag
       }
       }
       // extra options
       // extra options
+      // in 1.0.0 this is used by vue-router only
+      /* istanbul ignore if */
       if (extraOptions) {
       if (extraOptions) {
         _.extend(options, extraOptions)
         _.extend(options, extraOptions)
       }
       }

+ 0 - 1
src/directives/public/model/index.js

@@ -22,7 +22,6 @@ module.exports = {
    *     - checkbox
    *     - checkbox
    *     - radio
    *     - radio
    *     - number
    *     - number
-   *     - TODO: more types may be supplied as a plugin
    */
    */
 
 
   bind: function () {
   bind: function () {