diff --git a/ui (gen4)/features/config.js b/ui (gen4)/features/config.js index 5e15631f..e6ed9d50 100755 --- a/ui (gen4)/features/config.js +++ b/ui (gen4)/features/config.js @@ -29,6 +29,9 @@ var core = require('features/core') var TimersActions = actions.Actions({ config: { + // Format: + // XXX + 'persistent-intervals': null, }, __timeouts: null, @@ -83,6 +86,19 @@ var TimersActions = actions.Actions({ clearInterval(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 =