Check also for superclass of Travis.AuthRoute

Ember.js creates subclasses of given class in container, so we need to
check also superclass
This commit is contained in:
Piotr Sarnacki 2013-08-27 18:22:54 +02:00
parent b56fa7b9df
commit 08d17fdf2b

View File

@ -46,7 +46,7 @@ Ember.Route.reopen
Travis.auth.set('afterSignInTransition', null)
transition.retry()
else
@transitionTo('index.current') if @constructor == Travis.AuthRoute
@transitionTo('index.current') if @constructor == Travis.AuthRoute || @constructor.superclass == Travis.AuthRoute
afterSignOut: ->
@transitionTo('index.current')