Use empty function instead of Ember.K
Technically it's the same thing, but since in coffeescript it's just a few characters, there is no need to use something that does not explicitly say what it does.
This commit is contained in:
parent
64fc6ce717
commit
233e95b18d
|
@ -150,18 +150,18 @@ Travis.Router = Ember.Router.extend
|
|||
router.transitionTo('authenticated')
|
||||
|
||||
authenticated: Ember.Route.extend
|
||||
authenticate: Ember.K
|
||||
authenticate: (->)
|
||||
connectOutlets: (router) ->
|
||||
path = sessionStorage.getItem('travis.path')
|
||||
sessionStorage.removeItem('travis.path')
|
||||
router.transitionTo('root')
|
||||
if path
|
||||
router.route(path)
|
||||
else
|
||||
else
|
||||
router.route('/')
|
||||
|
||||
root: Ember.Route.extend
|
||||
authenticate: Ember.K
|
||||
authenticate: (->)
|
||||
loading: Ember.State.extend()
|
||||
|
||||
auth: Ember.Route.extend
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
095a1a79
|
||||
c556b8be
|
Loading…
Reference in New Issue
Block a user