subscribe to participant change events in status bar view

This commit is contained in:
Ben Ogle
2013-07-25 16:44:38 -07:00
parent ffb4387aab
commit b4ee425711

View File

@@ -14,11 +14,10 @@ class HostStatusBar extends View
else
@session.start()
@session.on 'listening started stopped', @update
@session.on 'listening started stopped participant-entered participant-exited', @update
@update()
update: =>
console.log 'updating', this
if @session.isListening()
@status.addClass('running')
@connections.show().text(@session.participants.length)