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

use data instead of nodeValue for v-text

Evan You 11 лет назад
Родитель
Сommit
92319e6d04
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/directives/text.js

+ 1 - 1
src/directives/text.js

@@ -4,7 +4,7 @@ module.exports = {
 
   bind: function () {
     this.attr = this.el.nodeType === 3
-      ? 'nodeValue'
+      ? 'data'
       : 'textContent'
   },