Skip to content

Commit

Permalink
improving the bind-view render algorithm to now take primitives into …
Browse files Browse the repository at this point in the history
…consideration
  • Loading branch information
ckirkendall committed May 3, 2014
1 parent 675fb0e commit 05fbed4
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/cljs/enfocus/bind.cljs
Expand Up @@ -76,11 +76,10 @@
[(fetch-in oval mapping)
(fetch-in nval mapping)]
[oval nval])]
(when-not (and (#{cljs.core/PersistantHashSet
cljs.core/PersistentArrayMap
cljs.core/PersistantVector
cljs.core/List} (type nmval))
(identical? omval nmval))
(when-not (and (or (coll? nval)
(number? nval)
(string? nval))
(= omval nmval))
(render-func node nmval)))
(remove-watch ref (build-key id))))))

Expand Down

0 comments on commit 05fbed4

Please sign in to comment.