Просмотр исходного кода

Specify that tags with side-effects will not be parsed. (#4525)

Bryce Johnson 9 лет назад
Родитель
Сommit
fd55399ff9
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/compiler/parser/index.js

+ 1 - 1
src/compiler/parser/index.js

@@ -91,7 +91,7 @@ export function parse (
         process.env.NODE_ENV !== 'production' && warn(
           'Templates should only be responsible for mapping the state to the ' +
           'UI. Avoid placing tags with side-effects in your templates, such as ' +
-          `<${tag}>.`
+          `<${tag}>` + ', as they will not be parsed.'
         )
       }