When using reflux.createActions with following syntax:
var Actions = Reflux.createActions([{ actionName: "action1", sync: false }, { actionName: "action2", sync: false }, { actionName: "action3", asyncResult: true }]);
it works incorrectly.
Given my example, I expect to get an object
{ action1, action2, action3 }.
But instead I get an object
{ actionName, asyncResult, sync }
Screenshot:
Seems like it considers every array item to be an object with action names as properties instead of action definitions therefore we get this wrong behavior.
When using reflux.createActions with following syntax:
var Actions = Reflux.createActions([{ actionName: "action1", sync: false }, { actionName: "action2", sync: false }, { actionName: "action3", asyncResult: true }]);
it works incorrectly.Given my example, I expect to get an object
{ action1, action2, action3 }
.But instead I get an object
{ actionName, asyncResult, sync }
Screenshot:![screenshot](http://i.imgur.com/JrJYj1D.png)
Seems like it considers every array item to be an object with action names as properties instead of action definitions therefore we get this wrong behavior.
I am using
reflux 6.4.1