Evan You 10 лет назад
Родитель
Сommit
c352b57440
1 измененных файлов с 0 добавлено и 10 удалено
  1. 0 10
      src/compiler/compile.js

+ 0 - 10
src/compiler/compile.js

@@ -9,7 +9,6 @@ var resolveAsset = _.resolveAsset
 var componentDef = require('../directives/component')
 
 // special binding prefixes
-var propRE = /^prop-/
 var bindRE = /^bind-/
 var onRE = /^on-/
 
@@ -624,15 +623,6 @@ function compileDirectives (attrs, options) {
       })
     } else
 
-    // should not see props here
-    /* istanbul ignore if */
-    if (process.env.NODE_ENV !== 'production' && propRE.test(name)) {
-      _.warn(
-        name + '="' + value + '" is not compiled. The prop is either not declared ' +
-        'on the child component, or is used on a non-component element.'
-      )
-    } else
-
     // TODO: remove this in 1.0.0
     if (config.interpolate) {
       dir = collectAttrDirective(name, value, options)