Fix errors with reload

This commit is contained in:
Piotr Sarnacki 2012-10-22 19:54:53 +02:00
parent 300ad58516
commit c02f4d860b
4 changed files with 7 additions and 4 deletions

View File

@ -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

View File

@ -1 +1 @@
f2588d36
a5042876