Commit a0d2a1b
committed
register_lightbox gets the lightbox element only when it's activated
It looks like `register_lightbox` happens before `NumbasExamElement.init`, which sets `this.lightbox`.
A way round this is to only get `this.lightbox` in the function that activates the lightbox, since that's where it's used.1 parent bb2a2cd commit a0d2a1b
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
465 | 465 | | |
466 | 466 | | |
467 | 467 | | |
468 | | - | |
469 | 468 | | |
470 | 469 | | |
471 | 470 | | |
| |||
492 | 491 | | |
493 | 492 | | |
494 | 493 | | |
| 494 | + | |
495 | 495 | | |
496 | 496 | | |
497 | 497 | | |
| |||
0 commit comments