Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 16df079

Browse files
committed
Bug fix - add component factory for grading
1 parent 5e8255b commit 16df079

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

runestone/poll/js/poll.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,3 +219,9 @@ $(document).bind("runestone:login-complete", function () {
219219
pollList[this.id] = new Poll({"orig":this});
220220
});
221221
});
222+
223+
if (typeof component_factory === 'undefined') {
224+
component_factory = {}
225+
}
226+
component_factory['poll'] = function(opts) { return new Poll(opts)}
227+

0 commit comments

Comments
 (0)