Fix errors with reload
This commit is contained in:
parent
300ad58516
commit
c02f4d860b
|
@ -41,7 +41,10 @@ Travis.Router = Ember.Router.extend
|
|||
reload: ->
|
||||
url = @get('location').getURL()
|
||||
@transitionTo('loading')
|
||||
@route(url)
|
||||
# Without ember next @route sometimes hit the place where HistoryLocation
|
||||
# does not have any state set up yet, so it's best to defer it a little bit.
|
||||
Ember.run.next this, ->
|
||||
@route(url)
|
||||
|
||||
signedIn: ->
|
||||
!!Travis.app.get('auth.user')
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
f2588d36
|
||||
a5042876
|
Loading…
Reference in New Issue
Block a user