-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
store reference to containing question in JME scope
I couldn't think of a better way of letting an HTML object created in JME get hold of the containing question. Question.scope has a property `question` which is a reference back to the question object. This lets JME functions access the question, without appealing to global variables or passing a question object down the whole evaluation chain.
- Loading branch information
1 parent
fa45a82
commit 94483ad
Showing
2 changed files
with
3 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
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