Khan/khan-exercises — comment on commit 188b2dc121f9c8fe79bf0a0137e826f2da0aaa03
File:  line 0
By divad12:

Good observation. :)

For summatives, we always load all exercises with `loadExercise`, so that's fine. For review mode, it's a bit of a hack: we don't store the style for the original exercise, but we will call `loadExercise` to load it again anyway if it comes up, because the original exercise's element doesn't have `.data('name')`, which we use in `maybeEnqueueReviewExercises` to determine which exercises are loaded. Yeah, pretty gross implicit dependencies. :(

It's probably better to just always store the style and script tags for the original exercise, but I haven't bothered yet.