Skip to content

Commit

Permalink
Catching no pnode
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuno Frade committed May 26, 2016
1 parent 0756f0b commit 20d060c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ exports.properties = {
},
state (target, state, type, stamp, subs, tree, id, pid) {
const pnode = getParent(type, stamp, subs, tree, pid)
if (!pnode) {
console.error('No pnode')
return
}
if (!pnode._styleStaticParsed) {
props(target, pnode)
pnode._styleStaticParsed = true
Expand Down

0 comments on commit 20d060c

Please sign in to comment.