Skip to content

Commit c352b57

Browse files
committed
remove prop warning
1 parent 08b1ca3 commit c352b57

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/compiler/compile.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ var resolveAsset = _.resolveAsset
99
var componentDef = require('../directives/component')
1010

1111
// special binding prefixes
12-
var propRE = /^prop-/
1312
var bindRE = /^bind-/
1413
var onRE = /^on-/
1514

@@ -624,15 +623,6 @@ function compileDirectives (attrs, options) {
624623
})
625624
} else
626625

627-
// should not see props here
628-
/* istanbul ignore if */
629-
if (process.env.NODE_ENV !== 'production' && propRE.test(name)) {
630-
_.warn(
631-
name + '="' + value + '" is not compiled. The prop is either not declared ' +
632-
'on the child component, or is used on a non-component element.'
633-
)
634-
} else
635-
636626
// TODO: remove this in 1.0.0
637627
if (config.interpolate) {
638628
dir = collectAttrDirective(name, value, options)

0 commit comments

Comments
 (0)