Skip to content

Commit

Permalink
fixed: merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
GianlucaGuarini committed Jun 27, 2015
1 parent 7ec905c commit bb137a6
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions lib/browser/tag/each.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ function _each(dom, parent, expr) {

// object loop. any changes cause full redraw
if (!isArray(items)) {
var testsum = JSON.stringify(items)
test = checksum
checksum = items ? JSON.stringify(items) : ''
if (checksum === test) return

items = !items ? [] :
Object.keys(items).map(function (key) {
Expand Down Expand Up @@ -94,13 +96,4 @@ function _each(dom, parent, expr) {
})
})

rendered = items.slice()

}).one('updated', function() {
var keys = Object.keys(parent)// only set new values
walk(root, function(dom) {
setNamed(dom, parent, keys)
})
})

}

0 comments on commit bb137a6

Please sign in to comment.