1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
unleash.unleash/public/js/stores/initalizer.js

18 lines
485 B
JavaScript
Raw Normal View History

2015-03-17 22:52:10 +01:00
var FeatureToggleActions = require('./FeatureToggleActions');
var StrategyActions = require('./StrategyActions');
var Timer = require('../utils/Timer');
var _timer;
function load() {
FeatureToggleActions.init.triggerPromise();
StrategyActions.init.triggerPromise();
FeatureToggleActions.initArchive.triggerPromise();
}
module.exports = function(pollInterval) {
var intervall = pollInterval || 30;
_timer = new Timer(load, intervall*1000);
_timer.start();
};