mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 08:08:15 -05:00
Autoplay when observing others' replays
This commit is contained in:
parent
8fd47535d1
commit
97043c4a25
1 changed files with 3 additions and 1 deletions
|
@ -357,7 +357,9 @@ module.exports = class PlayLevelView extends RootView
|
|||
@selectHero()
|
||||
|
||||
onLoadingViewUnveiled: (e) ->
|
||||
Backbone.Mediator.publish 'level:set-playing', playing: true if @level.get('type') in ['course-ladder', 'hero-ladder'] # We used to autoplay by default, but now we only do it if the level says to in the introduction script.
|
||||
if @level.get('type') in ['course-ladder', 'hero-ladder'] or @observing
|
||||
# We used to autoplay by default, but now we only do it if the level says to in the introduction script.
|
||||
Backbone.Mediator.publish 'level:set-playing', playing: true
|
||||
@loadingView.$el.remove()
|
||||
@removeSubView @loadingView
|
||||
@loadingView = null
|
||||
|
|
Loading…
Reference in a new issue