Skip to content

Commit

Permalink
Guard in listData deserialize logic.
Browse files Browse the repository at this point in the history
Support both forms `listData` and `_listData`.
  • Loading branch information
tmpfs committed Apr 18, 2016
1 parent 014d60e commit 903989c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,9 @@ function deserialize(node) {
n._string_content = node.stringContent;
}

for(var k in node.listData) {
n._listData[k] = node.listData[k];
var listData = node.listData || node._listData;
for(var k in listData) {
n._listData[k] = listData[k];
}

// fenced code block info
Expand Down

0 comments on commit 903989c

Please sign in to comment.