My experiment has several text components that are initialized as blank and updated by frame. When I run it on Pavlovia, I get the error “ReferenceError: None is not defined” and on looking at the js code I see that the text components are being initialized with a None
keyword:
DisplayResponseText = new visual.TextStim({
win : psychoJS.window,
name : 'DisplayResponseText',
text : None,
font : 'Arial',
pos : [0, 0], height : 0.1, wrapWidth : 1.5, ori: 0,
color : new util.Color('white'), opacity : 1,
depth : -5.0
});
(These are the only instances of None
in the js code.) I manually replaced all instances of None
with null
and it cleared up (after I cleared the cache, that is—am I the only one who took forever to figure that out?) I don’t need help with it now, just reporting the bug.