From f067337635414b0ca5be33972459c222324f018c Mon Sep 17 00:00:00 2001 From: phoenixeliot Date: Tue, 31 May 2016 11:21:55 -0700 Subject: [PATCH] Fix classroom student count --- app/views/courses/TeacherClassView.coffee | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/views/courses/TeacherClassView.coffee b/app/views/courses/TeacherClassView.coffee index bfb907bbb..ce4c99c76 100644 --- a/app/views/courses/TeacherClassView.coffee +++ b/app/views/courses/TeacherClassView.coffee @@ -127,7 +127,6 @@ module.exports = class TeacherClassView extends RootView @render() # Model/Collection events @listenTo @classroom, 'sync change update', -> - @removeDeletedStudents() classCode = @classroom.get('codeCamel') or @classroom.get('code') @state.set { classCode: classCode @@ -144,7 +143,6 @@ module.exports = class TeacherClassView extends RootView @listenTo @students, 'sync change update add remove reset', -> # Set state/props of things that depend on students? # Set specific parts of state based on the models, rather than just dumping the collection there? - @removeDeletedStudents() @calculateProgressAndLevels() classStats = @calculateClassStats() @state.set classStats: classStats if classStats