Permalink
Browse files

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 f1bd150474a62d5225f31c655ec1388d587b1c22
Showing with 3 additions and 3 deletions.
  1. +3 −3 psychopy/app/builder/experiment.py
@@ -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"

0 comments on commit f1bd150

Please sign in to comment.