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

remove is="{{}}" deprecation warning

Evan You 10 лет назад
Родитель
Сommit
f45979a0a2
2 измененных файлов с 0 добавлено и 10 удалено
  1. 0 7
      src/deprecations.js
  2. 0 3
      src/util/component.js

+ 0 - 7
src/deprecations.js

@@ -105,13 +105,6 @@ if (process.env.NODE_ENV !== 'production') {
       )
     },
 
-    BIND_IS: function () {
-      warn(
-        '<component bind-is="view"> syntax will be deprecated in 1.0.0. Use ' +
-        '<component bind-is="view"> instead.'
-      )
-    },
-
     PARTIAL_NAME: function (id) {
       warn(
         '<partial name="' + id + '">: mustache interpolations inside attributes ' +

+ 0 - 3
src/util/component.js

@@ -16,9 +16,6 @@ exports.checkComponent = function (el, options) {
     // dynamic syntax
     var exp = el.getAttribute('is')
     if (exp != null) {
-      if (process.env.NODE_ENV !== 'production' && /{{.*}}/.test(exp)) {
-        _.deprecation.BIND_IS()
-      }
       el.removeAttribute('is')
     } else {
       exp = el.getAttribute('bind-is')