Create multiple actions convenience function #6

Closed
spoike opened this Issue Jul 28, 2014 · 0 comments

Comments

Projects
None yet
1 participant
@spoike
Member

spoike commented Jul 28, 2014

Add to the Reflux API a way to easily create multiple actions to an object with an array of names as parameter. Example:

var Action = createActions([
    "activateGem",
    "deactivateGem",
    "openPopup",
    "closePopup"
  ]);

console.log(Action);
// Should output something like this:
// {
//     activateGem: {Action},
//     deactivateGem: {Action},
//     openPopup: {Action},
//     closePopup: {Action},
// }

@spoike spoike added the enhancement label Jul 28, 2014

@spoike spoike added this to the 0.1.1 milestone Jul 28, 2014

@spoike spoike closed this in 8a60a9a Jul 28, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment