Skip to content

Commit

Permalink
Scenarios: Fixed missing next statement, in json
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferllings committed Oct 1, 2014
1 parent 80984b1 commit 5cf0b9b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/domogik/admin/static/js/blockly_json.js
Expand Up @@ -63,6 +63,11 @@ Blockly.JSON.blockToJson = function(block) {
element['editable'] = false;
}

var nextBlock = block.getNextBlock();
if (nextBlock) {
element['NEXT']= Blockly.JSON.blockToJson(nextBlock);
}

return element;
};

Expand Down

0 comments on commit 5cf0b9b

Please sign in to comment.