Rename routeTo to routeToPath
Ember already uses routeTo, we don't want to override this
This commit is contained in:
parent
50c2565540
commit
e1b5e5d883
|
@ -59,12 +59,12 @@ Ember.Route.reopen
|
|||
@afterSignOut()
|
||||
|
||||
afterSignIn: (path) ->
|
||||
@routeTo(path)
|
||||
@routeToPath(path)
|
||||
|
||||
afterSignOut: ->
|
||||
@routeTo('/')
|
||||
@routeToPath('/')
|
||||
|
||||
routeTo: (path) ->
|
||||
routeToPath: (path) ->
|
||||
return unless path
|
||||
@router.handleURL(path)
|
||||
@router.location.setURL(path)
|
||||
|
|
Loading…
Reference in New Issue
Block a user