travis-web/assets/scripts/app/views/dashboard.coffee
Piotr Sarnacki 5065bb5739 Subscribe to pusher channels only when entering the MainRoute
We don't want to subscribe if we're at any other routes, because there is no
data there. The main target is to avoid all of the notifications from a common
channel if we're on the /dashboard route.
2015-01-15 10:36:35 +01:00

9 lines
136 B
CoffeeScript

require 'views/view'
TravisView = Travis.View
View = TravisView.extend
layoutName: 'layouts/dashboard'
Travis.DashboardView = View