Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
BF: removed redundant quitPsychoJS calls that end html exp early
caused by incorrect indentation - there should be a single call after the
routines have all been scheduled
  • Loading branch information
peircej committed Mar 15, 2017
1 parent d68c36b commit f1bd150
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions psychopy/app/builder/experiment.py
Expand Up @@ -1824,9 +1824,9 @@ def writeBodyJS(self, script):
loopStack.append(thisEntry.loop)
elif thisEntry.getType() == 'LoopTerminator':
loopStack.remove(thisEntry.loop)
# also flow should close when done
code += "flowScheduler.add(quitPsychoJS);\n"
script.writeIndentedLines(code)
# also flow should close when done
code += "flowScheduler.add(quitPsychoJS);\n"
script.writeIndentedLines(code)
# handled all the flow entries
code = ("\n// quit if user presses Cancel in dialog box:\n"
"dialogCancelScheduler.add(quitPsychoJS);\n"
Expand Down

0 comments on commit f1bd150

Please sign in to comment.