function constructor(){ CategoryStore.getCategoryList().then(function(list){ _categoryList = list; statsStore.setState(getCurrentState()); }); ExpressionStore.subscribe(function(){ statsStore.setState(getCurrentState()); }); statsStore.setState(getCurrentState()); }
function constructor(){ //_loadStoredExpressions(); _getClientList().then(function(){ _getSomeClientComparisons(); _getSomeReferenceComparisons(); //Not needed as categories as within same user _getSomeCategoryComparisons(); }); ExpressionStore.subscribe(function(){ statsStore.setState(getCurrentState()); }); statsStore.setState(getCurrentState()); }