Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (9 sloc) 211 Bytes
# Acts as the timer of the loops
class window.Clock
constructor: ->
@ticks = 0
@loopTime = 888
play: =>
Backbone.trigger('tick', @ticks)
@ticks = @ticks + 1
setTimeout(@play, @loopTime)