File tree Expand file tree Collapse file tree
bases/rsptx/interactives/runestone/mchoice/js Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,12 +25,12 @@ export default class MultipleChoice extends RunestoneBase {
2525 this . useRunestoneServices = opts . useRunestoneServices ;
2626 this . multipleanswers = false ;
2727 this . divid = orig . id ;
28- if ( this . origElem . getAttribute ( "data-multipleanswers" ) === "true" || this . origElem . hasAttribute ( "data-multipleanswers" ) ) {
28+ if ( this . parseBooleanAttribute ( this . origElem , "data-multipleanswers" ) ) {
2929 this . multipleanswers = true ;
3030 }
3131 this . children = this . origElem . childNodes ;
3232 this . random = false ;
33- if ( this . origElem . hasAttribute ( "[data-random]" ) || this . origElem . hasAttribute ( "data-random" ) ) {
33+ if ( this . parseBooleanAttribute ( this . origElem , "data-random" ) ) {
3434 this . random = true ;
3535 }
3636 this . correct = null ;
You can’t perform that action at this time.
0 commit comments