Files
freeCodeCamp/common/screens/context/Store.js
2015-06-04 10:53:01 -07:00

19 lines
357 B
JavaScript

var Store = require('thundercats').Store,
ContextActions = require('./Actions');
var ContextStore = Store.create({
getInitialValue: function() {
return {};
},
getOperations: function() {
return ContextActions
.renderToUser
.map(function(ctx) {
return { value: ctx };
});
}
});
module.exports = ContextStore;