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()
|
@afterSignOut()
|
||||||
|
|
||||||
afterSignIn: (path) ->
|
afterSignIn: (path) ->
|
||||||
@routeTo(path)
|
@routeToPath(path)
|
||||||
|
|
||||||
afterSignOut: ->
|
afterSignOut: ->
|
||||||
@routeTo('/')
|
@routeToPath('/')
|
||||||
|
|
||||||
routeTo: (path) ->
|
routeToPath: (path) ->
|
||||||
return unless path
|
return unless path
|
||||||
@router.handleURL(path)
|
@router.handleURL(path)
|
||||||
@router.location.setURL(path)
|
@router.location.setURL(path)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user