File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -402,7 +402,7 @@ Question.prototype = /** @lends Numbas.Question.prototype */
402402 q . xml = doc . selectSingleNode ( 'question' ) ;
403403 q . xml . setAttribute ( 'number' , q . number ) ;
404404 } ) ;
405- q . signals . on ( 'variablesGenerated' , function ( ) {
405+ q . signals . on ( [ 'variablesGenerated' , 'rulesetsMade' ] , function ( ) {
406406 var partNodes = q . xml . selectNodes ( 'parts/part' ) ;
407407 switch ( q . partsMode ) {
408408 case 'all' :
@@ -622,7 +622,7 @@ Question.prototype = /** @lends Numbas.Question.prototype */
622622 tryLoad ( variablesTest , [ 'condition' , 'maxRuns' ] , q . variablesTest ) ;
623623 }
624624 q . signals . trigger ( 'variableDefinitionsLoaded' ) ;
625- q . signals . on ( 'variablesGenerated' , function ( ) {
625+ q . signals . on ( [ 'variablesGenerated' , 'rulesetsMade' ] , function ( ) {
626626 var parts = tryGet ( data , 'parts' ) ;
627627 if ( parts ) {
628628 switch ( q . partsMode ) {
You can’t perform that action at this time.
0 commit comments