Skip to content
Permalink
Browse files

BF: Make loop boolean value lowercase for JS

  • Loading branch information...
dvbridges committed May 14, 2019
1 parent c45378b commit 51b0824f75507c93397f72e9bcdc585234cd3fdf
Showing with 3 additions and 1 deletion.
  1. +3 −1 psychopy/experiment/components/movie/__init__.py
@@ -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'
@@ -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)

0 comments on commit 51b0824

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