while support
This commit is contained in:
parent
b503dbba93
commit
ba2477c8a8
@ -280,13 +280,13 @@ events.prototype.doAction = function() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var current = core.status.data.list[0];
|
var current = core.status.event.data.list[0];
|
||||||
if (current.todo.length == 0) { // current list is empty
|
if (current.todo.length == 0) { // current list is empty
|
||||||
if (core.calValue(current.condition)) { // check condition
|
if (core.calValue(current.condition)) { // check condition
|
||||||
current.todo = core.clone(current.total);
|
current.todo = core.clone(current.total);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
core.status.data.list.shift(); // remove stackc
|
core.status.event.data.list.shift(); // remove stackc
|
||||||
}
|
}
|
||||||
this.doAction();
|
this.doAction();
|
||||||
return;
|
return;
|
||||||
@ -706,7 +706,7 @@ events.prototype.doAction = function() {
|
|||||||
case "while":
|
case "while":
|
||||||
if (core.calValue(data.condition)) {
|
if (core.calValue(data.condition)) {
|
||||||
core.unshift(core.status.event.data.list,
|
core.unshift(core.status.event.data.list,
|
||||||
{"todo": core.clone(data.actions), "total": core.clone(data.actions), "condition": data.condition}
|
{"todo": core.clone(data.data), "total": core.clone(data.data), "condition": data.condition}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
this.doAction();
|
this.doAction();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user