Explorar o código

fix primitive values

Evan You %!s(int64=10) %!d(string=hai) anos
pai
achega
ff3c9b5d2a
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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