Add flux support including generators

This commit is contained in:
Justin Niessner
2015-03-25 22:42:02 -04:00
parent 3a94fb3fe6
commit 3cf4d739e3
10 changed files with 105 additions and 8 deletions
+20
View File
@@ -0,0 +1,20 @@
'use strict';
var EventEmitter = require('events').EventEmitter;
var assign = require('object-assign');
var <%= dispatcherName %> = require('../dispatcher/<%= dispatcherName %>');
var <%= classedName + 'Store' %> = assign({}, EventEmitter.prototype, {
});
<%= classedName + 'Store' %>.dispatchToken = <%= dispatcherName %>.register(function(action) {
switch(action.type) {
default:
}
});
<% if (es6) { %> export default <%= classedName + 'Store' %>; <% }
else { %>module.exports = <%= classedName + 'Store' %>; <% } %>