mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
more core timers...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
93f4126567
commit
debf550b0a
@ -29,6 +29,9 @@ var core = require('features/core')
|
|||||||
|
|
||||||
var TimersActions = actions.Actions({
|
var TimersActions = actions.Actions({
|
||||||
config: {
|
config: {
|
||||||
|
// Format:
|
||||||
|
// XXX
|
||||||
|
'persistent-intervals': null,
|
||||||
},
|
},
|
||||||
|
|
||||||
__timeouts: null,
|
__timeouts: null,
|
||||||
@ -83,6 +86,19 @@ var TimersActions = actions.Actions({
|
|||||||
clearInterval(intervals[id])
|
clearInterval(intervals[id])
|
||||||
delete intervals[id]
|
delete intervals[id]
|
||||||
}],
|
}],
|
||||||
|
|
||||||
|
// XXX start all on .start(..) and stop on .stop(..)...
|
||||||
|
setPersistentInterval: ['- System/',
|
||||||
|
function(id, func, ms){
|
||||||
|
// XXX
|
||||||
|
}],
|
||||||
|
// XXX
|
||||||
|
clearPersistentInterval: ['- System/',
|
||||||
|
function(id){
|
||||||
|
var intervals = this.config['persistent-intervals'] = this.config['persistent-intervals'] || {}
|
||||||
|
clearInterval(intervals[id])
|
||||||
|
delete intervals[id]
|
||||||
|
}],
|
||||||
})
|
})
|
||||||
|
|
||||||
var Timers =
|
var Timers =
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user