Rename routeTo to routeToPath

Ember already uses routeTo, we don't want to override this
This commit is contained in:
Piotr Sarnacki 2013-06-07 15:59:08 +02:00
parent 50c2565540
commit e1b5e5d883

View File

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