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:
parent
b56fa7b9df
commit
08d17fdf2b
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue
Block a user