Created
December 9, 2014 00:43
-
-
Save flarnie/105b87c9ff6eae161059 to your computer and use it in GitHub Desktop.
Flux TodoApp Sample 4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The 'create' method creates an action of type 'TODO_CREATE' | |
// ... | |
var TodoActions = { | |
/** | |
* @param {string} text | |
*/ | |
create: function(text) { | |
AppDispatcher.handleViewAction({ | |
actionType: TodoConstants.TODO_CREATE, | |
text: text | |
}); | |
}, | |
// ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment