Przeglądaj źródła

fix primitive values

Evan You 10 lat temu
rodzic
commit
ff3c9b5d2a
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      src/directives/for.js

+ 1 - 0
src/directives/for.js

@@ -84,6 +84,7 @@ module.exports = {
       item = data[i]
       key = converted ? item.$key : null
       value = converted ? item.$value : item
+      primitive = !isObject(value)
       frag = !init && this.getCachedFrag(value, i, key)
       if (frag) { // reusable fragment
         frag.reused = true