Skip to content

Commit

Permalink
BF: Make loop boolean value lowercase for JS
Browse files Browse the repository at this point in the history
  • Loading branch information
dvbridges committed May 14, 2019
1 parent c45378b commit 51b0824
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion psychopy/experiment/components/movie/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ def writeInitCodeJS(self, buff):

inits = getInitVals(self.params)
noAudio = '{}'.format(inits['No audio'].val).lower()
loop = '{}'.format(inits['loop'].val).lower()

for param in inits:
if inits[param] in ['', None, 'None', 'none']:
inits[param] = 'undefined'
Expand All @@ -186,7 +188,7 @@ def writeInitCodeJS(self, buff):
pos=inits['pos'],
size=inits['size'],
ori=inits['ori'],
loop=inits['loop'],
loop=loop,
opacity=inits['opacity'],
noAudio=noAudio)
buff.writeIndentedLines(code)
Expand Down

0 comments on commit 51b0824

Please sign in to comment.