Added @scrollTo().

This commit is contained in:
Martin Edenhofer 2012-04-20 18:12:58 +02:00
parent 9a551ea77c
commit 8a5ff60677

View file

@ -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: ->
#