Skip to content

Commit

Permalink
remove _isComplete condition on setCompletionStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshu1618 committed Jan 13, 2016
1 parent 84ecb8e commit 2c327b1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions js/adapt-contrib-flipcard.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,8 @@ define([

// This function will check or set the completion status of current component.
checkCompletionStatus: function() {
if (!this.model.get('_isComplete')) {
if (this.getVisitedItems().length === this.model.get('_items').length) {
this.setCompletionStatus();
}
if (this.getVisitedItems().length === this.model.get('_items').length) {
this.setCompletionStatus();
}
}
});
Expand Down

0 comments on commit 2c327b1

Please sign in to comment.