19 lines
357 B
JavaScript
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;
|