Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create multiple actions convenience function #6

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

Create multiple actions convenience function #6

spoike opened this issue Jul 28, 2014 · 0 comments
Milestone

Comments

@spoike
Copy link
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 this to the 0.1.1 milestone Jul 28, 2014
@spoike spoike closed this as completed in 8a60a9a Jul 28, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant