-
Notifications
You must be signed in to change notification settings - Fork 912
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BF: Before Experiment was not being written for JS (fixes #3115)
- Loading branch information
Showing
2 changed files
with
7 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -223,6 +223,8 @@ def writeScript(self, expPath=None, target="PsychoPy", modular=True): | |
self_copy._currentRoutine = entry | ||
if hasattr(entry, 'writeInitCodeJS'): | ||
entry.writeInitCodeJS(script) | ||
if hasattr(entry, 'writePreCodeJS'): | ||
entry.writePreCode(script) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
kjj11033
|
||
|
||
# create globalClock etc | ||
code = ("// Create some handy timers\n" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Surely this should be
writePreCodeJS
?