Commit d208379 1 parent 349629b commit d208379 Copy full SHA for d208379
File tree 1 file changed +1
-2
lines changed
1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ export default class ItemsComponentModel extends ComponentModel {
14
14
this . setUpItems ( ) ;
15
15
this . listenTo ( this . getChildren ( ) , {
16
16
all : this . onAll ,
17
+ 'change' : this . storeUserAnswer ,
17
18
'change:_isActive' : this . setVisitedStatus ,
18
19
'change:_isVisited' : this . checkCompletionStatus
19
20
} ) ;
@@ -60,7 +61,6 @@ export default class ItemsComponentModel extends ComponentModel {
60
61
61
62
checkCompletionStatus ( ) {
62
63
this . setVisitedStatus ( ) ;
63
- this . storeUserAnswer ( ) ;
64
64
if ( ! this . areAllItemsCompleted ( ) ) return ;
65
65
this . setCompletionStatus ( ) ;
66
66
}
@@ -84,7 +84,6 @@ export default class ItemsComponentModel extends ComponentModel {
84
84
setActiveItem ( index ) {
85
85
const item = this . getItem ( index ) ;
86
86
if ( ! item ) return ;
87
-
88
87
const activeItem = this . getActiveItem ( ) ;
89
88
if ( activeItem ) activeItem . toggleActive ( false ) ;
90
89
item . toggleActive ( true ) ;
You can’t perform that action at this time.
0 commit comments