Parcourir la source

fix primitive values

Evan You il y a 10 ans
Parent
commit
ff3c9b5d2a
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  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