Explorar o código

use data instead of nodeValue for v-text

Evan You %!s(int64=11) %!d(string=hai) anos
pai
achega
92319e6d04
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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'
   },