Added @scrollTo().
This commit is contained in:
parent
9a551ea77c
commit
8a5ff60677
1 changed files with 6 additions and 0 deletions
|
@ -12,6 +12,12 @@ class App.Controller extends Spine.Controller
|
|||
navupdate: (url) ->
|
||||
Spine.trigger 'navupdate', url
|
||||
|
||||
scrollTo: ( x = 0, y = 0 ) ->
|
||||
a = ->
|
||||
window.scrollTo( 0,0 )
|
||||
|
||||
@delay( a, 0 )
|
||||
|
||||
# # extend delegateEvents to unbind and undelegate
|
||||
# delegateEvents: ->
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue