Skip to content
Permalink
Browse files

BF: Reactivate forceEndRoutine for Slider.

  • Loading branch information...
dvbridges authored and peircej committed Jan 30, 2019
1 parent 7a7751c commit 0694027b2c9621df9e3a0c89a8994e8e035a7a99
Showing with 6 additions and 6 deletions.
  1. +6 −6 psychopy/experiment/components/slider/__init__.py
@@ -259,12 +259,12 @@ def writeFrameCode(self, buff):

def writeFrameCodeJS(self, buff):
super(SliderComponent, self).writeFrameCodeJS(buff) # Write basevisual frame code
# forceEnd = self.params['forceEndRoutine'].val
# if forceEnd:
# code = ("\n// Check %(name)s for response to end routine\n"
# "if (%(name)s.getRating() !== 'undefined' && %(name)s.status === PsychoJS.Status.STARTED) {\n"
# " continueRoutine = false; }\n")
# buff.writeIndentedLines(code % (self.params))
forceEnd = self.params['forceEndRoutine'].val
if forceEnd:
code = ("\n// Check %(name)s for response to end routine\n"
"if (%(name)s.getRating() !== 'undefined' && %(name)s.status === PsychoJS.Status.STARTED) {\n"
" continueRoutine = false; }\n")
buff.writeIndentedLines(code % (self.params))

def writeRoutineEndCode(self, buff):
name = self.params['name']

0 comments on commit 0694027

Please sign in to comment.
You can’t perform that action at this time.