👕Fix linter warning in mock course details view

warn: Linting of app/views/courses/mock1/CourseDetailsView.coffee:
warn: ensure_comprehensions at line 50.
This commit is contained in:
Matt Lott 2015-07-02 10:54:19 -07:00
parent ede3b35368
commit a62e0a8fe6

View file

@ -47,7 +47,8 @@ module.exports = class CourseDetailsView extends RootView
onChangeSession: (e) ->
@showExpandedProgress = false
newSessionValue = $(e.target).val()
@currentInstanceIndex = index for val, index in @instances when val.name is newSessionValue
for val, index in @instances when val.name is newSessionValue
@currentInstanceIndex = index
@updateLevelMaps()
@render?()