Commit ae20cb1
committed
BF: beginRoutineJS code was broekn if continueRoutine==False
The output tried to return early (as if in the eachFrame block) whereas
what it should have done was store continueRoutine as a global.
Key changes
--------------
1. Set continueRoutine as a global at *top* of beginRoutine code block
so it can be modified later in that block
2. remove this line from eachFrame (it would undo above fix)
let continueRoutine = true; // until we're told otherwise
3. remove the erroneous code where the return Scheduler.Event.NEXT was
made dependent on continueRoutine1 parent 817ed9e commit ae20cb1
2 files changed
Lines changed: 7 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
273 | | - | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
274 | 276 | | |
275 | 277 | | |
276 | 278 | | |
| |||
304 | 306 | | |
305 | 307 | | |
306 | 308 | | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
| 309 | + | |
312 | 310 | | |
313 | 311 | | |
314 | 312 | | |
315 | | - | |
| 313 | + | |
316 | 314 | | |
317 | 315 | | |
318 | 316 | | |
| |||
329 | 327 | | |
330 | 328 | | |
331 | 329 | | |
332 | | - | |
333 | 330 | | |
334 | 331 | | |
335 | 332 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
| |||
118 | 119 | | |
119 | 120 | | |
120 | 121 | | |
121 | | - | |
| 122 | + | |
122 | 123 | | |
123 | 124 | | |
124 | 125 | | |
| |||
0 commit comments