Skip to content

Commit

Permalink
fix engine
Browse files Browse the repository at this point in the history
  • Loading branch information
Ni55aN committed Apr 9, 2018
1 parent d3ad280 commit 809720a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ export class NodeEditor {
}

this.eventListener.persistent = false;

this.clear();
return true;
}

afterImport() {
Expand Down
6 changes: 3 additions & 3 deletions src/engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export class Engine {
return true;
}

async processStart(id) {
async processStartNode(id) {
if (id) {
let startNode = this.data.nodes[id];

Expand Down Expand Up @@ -231,8 +231,8 @@ export class Engine {
this.data = this.copy(data);
this.args = args;

this.processStart(startId);
this.processUnreachable();
await this.processStartNode(startId);
await this.processUnreachable();

return this.processDone()?'success':'aborted';
}
Expand Down
4 changes: 2 additions & 2 deletions test/data/recursive.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default {
'position': [
80, 200
],
'title': 'Number'
'title': 'name'
},
'2': {
'id': 2,
Expand All @@ -43,7 +43,7 @@ export default {
'position': [
105.55555555555556, 516.6666666666666
],
'title': 'Number'
'title': 'name'
},
'3': {
'id': 3,
Expand Down

0 comments on commit 809720a

Please sign in to comment.