Refactoring Play for Run

This commit is contained in:
Luis Fernando Molina committed 2019-09-20 09:27:44 +02:00
1 parent 22c8c328fa
commit a692801e99
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -20,7 +20,7 @@ function newStrategyPart () {
isExecuting: undefined,
isDefault: undefined,
setAsDefault: setAsDefault,
play: play,
run: run,
stop: stop,
setDefaultStatus: setDefaultStatus,
setNotRunningStatus: setNotRunningStatus,
@@ -530,7 +530,7 @@ function newStrategyPart () {
}
}
function play () {
function run () {
if (thisObject.circularProgressBar !== undefined) {
thisObject.circularProgressBar.finalize()
}
@@ -15,10 +15,10 @@ function newTaskFunctions () {
for (let i = 0; i < node.bot.processes.length; i++) {
let process = node.bot.processes[i]
process.payload.uiObject.play()
process.payload.uiObject.run()
}
node.payload.uiObject.play()
node.payload.uiObject.run()
let event = {
taskId: node.id,