dwf/rva: actionColllection now has an optional finishCallback
This commit is contained in:
@@ -64,6 +64,13 @@ var actionCollection = function () {
|
||||
finished: false,
|
||||
results: nestedResults(),
|
||||
|
||||
finish: function () {
|
||||
if (that.finishCallback) {
|
||||
that.finishCallback();
|
||||
}
|
||||
that.finished = true;
|
||||
},
|
||||
|
||||
report: function (result) {
|
||||
that.results.push(result);
|
||||
},
|
||||
@@ -80,7 +87,7 @@ var actionCollection = function () {
|
||||
|
||||
next: function() {
|
||||
if (that.index >= that.actions.length) {
|
||||
that.finished = true;
|
||||
that.finish();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user