Sha256: e25ce33ec4bcde49ca81f0a5fdfa9addb723fdc987311789ad1b44ed3eeee924
Contents?: true
Size: 520 Bytes
Versions: 1
Compression:
Stored size: 520 Bytes
Contents
Joosy.Modules.TimeManager = setTimeout: (timeout, action) -> @__timeouts ||= [] timer = window.setTimeout (=> action()), timeout @__timeouts.push timer timer setInterval: (delay, action) -> @__intervals ||= [] timer = window.setInterval (=> action()), delay @__intervals.push timer timer __clearTime: -> if @__intervals for entry in @__intervals window.clearInterval entry if @__timeouts for entry in @__timeouts window.clearTimeout entry
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
joosy-0.1.0.RC2 | app/assets/javascripts/joosy/core/modules/time_manager.js.coffee |