mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-05-04 01:43:40 -04:00
👕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:
parent
ede3b35368
commit
a62e0a8fe6
1 changed files with 2 additions and 1 deletions
|
@ -47,7 +47,8 @@ module.exports = class CourseDetailsView extends RootView
|
||||||
onChangeSession: (e) ->
|
onChangeSession: (e) ->
|
||||||
@showExpandedProgress = false
|
@showExpandedProgress = false
|
||||||
newSessionValue = $(e.target).val()
|
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()
|
@updateLevelMaps()
|
||||||
@render?()
|
@render?()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue