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

Commit 74f6f40

Browse files
committed
add selectquestion to component factory
1 parent 891b55d commit 74f6f40

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

runestone/selectquestion/js/selectone.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,15 @@ export default class SelectOne extends RunestoneBase {
421421
}
422422
}
423423

424+
425+
if (typeof window.component_factory === "undefined") {
426+
window.component_factory = {};
427+
}
428+
429+
window.component_factory.selectquestion = function (opts) {
430+
return new SelectOne(opts);
431+
};
432+
424433
/*
425434
* When the page is loaded and the login checks are complete find and render
426435
* each selectquestion component that is not part of a timedAssessment.

0 commit comments

Comments
 (0)