Skip to content

Commit

Permalink
fix in brisky-style for remove
Browse files Browse the repository at this point in the history
  • Loading branch information
youzi committed May 26, 2016
1 parent daa2819 commit 66d3cc8
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/type.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ exports.render = {
pnode.style[target.name || target.key] = target.compute()
},
state (target, state, type, stamp, subs, tree, id, pid) {
const pnode = getParent(type, stamp, subs, tree, pid)
pnode.style[target.name || target.key] = state
? target.compute(state.val)
: target.compute()
if (type !== 'remove') {
const pnode = getParent(type, stamp, subs, tree, pid)
pnode.style[target.name || target.key] = state
? target.compute(state.val)
: target.compute()
}
}
}

0 comments on commit 66d3cc8

Please sign in to comment.