Skip to content

Commit 51b0824

Browse files
committed
BF: Make loop boolean value lowercase for JS
1 parent c45378b commit 51b0824

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

psychopy/experiment/components/movie/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@ def writeInitCodeJS(self, buff):
162162

163163
inits = getInitVals(self.params)
164164
noAudio = '{}'.format(inits['No audio'].val).lower()
165+
loop = '{}'.format(inits['loop'].val).lower()
166+
165167
for param in inits:
166168
if inits[param] in ['', None, 'None', 'none']:
167169
inits[param] = 'undefined'
@@ -186,7 +188,7 @@ def writeInitCodeJS(self, buff):
186188
pos=inits['pos'],
187189
size=inits['size'],
188190
ori=inits['ori'],
189-
loop=inits['loop'],
191+
loop=loop,
190192
opacity=inits['opacity'],
191193
noAudio=noAudio)
192194
buff.writeIndentedLines(code)

0 commit comments

Comments
 (0)