From 66d3cc85198a97f216016786a2f7cb8fec380d88 Mon Sep 17 00:00:00 2001 From: Youri Daamen Date: Thu, 26 May 2016 19:20:50 +0200 Subject: [PATCH] fix in brisky-style for remove --- lib/type.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/type.js b/lib/type.js index 2afc983..0add42f 100644 --- a/lib/type.js +++ b/lib/type.js @@ -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() + } } }