Initialize application in Ember.next, fixes auth

This commit is contained in:
Piotr Sarnacki 2012-10-10 16:13:21 +02:00
parent 24d98eb66a
commit 404dde1cdf
4 changed files with 13 additions and 12 deletions

View File

@ -37,6 +37,7 @@ require 'ext/ember/namespace'
run: (attrs) -> run: (attrs) ->
location.href = location.href.replace('#!/', '') if location.hash.slice(0, 2) == '#!' location.href = location.href.replace('#!/', '') if location.hash.slice(0, 2) == '#!'
Ember.run.next this, ->
app = Travis.App.create(attrs || {}) app = Travis.App.create(attrs || {})
# TODO: router expects the classes for controllers on main namespace, so # TODO: router expects the classes for controllers on main namespace, so
# if we want to keep app at Travis.app, we need to copy that, it would # if we want to keep app at Travis.app, we need to copy that, it would

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 @@
bb4e051b 19b5fc63