Skip to content

Commit

Permalink
BF: removed redundant quitPsychoJS calls that end html exp early
Browse files Browse the repository at this point in the history
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
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -1824,9 +1824,9 @@ def writeBodyJS(self, script):
loopStack.append(thisEntry.loop) loopStack.append(thisEntry.loop)
elif thisEntry.getType() == 'LoopTerminator': elif thisEntry.getType() == 'LoopTerminator':
loopStack.remove(thisEntry.loop) loopStack.remove(thisEntry.loop)
# also flow should close when done # also flow should close when done
code += "flowScheduler.add(quitPsychoJS);\n" code += "flowScheduler.add(quitPsychoJS);\n"
script.writeIndentedLines(code) script.writeIndentedLines(code)
# handled all the flow entries # handled all the flow entries
code = ("\n// quit if user presses Cancel in dialog box:\n" code = ("\n// quit if user presses Cancel in dialog box:\n"
"dialogCancelScheduler.add(quitPsychoJS);\n" "dialogCancelScheduler.add(quitPsychoJS);\n"
Expand Down

0 comments on commit f1bd150

Please sign in to comment.