goatslacker / alt

Isomorphic flux implementation
http://alt.js.org/
3.45k stars 323 forks source link

Bringing back this.alt to actions #577

Closed m7moud closed 6 years ago

m7moud commented 8 years ago

This is my attempt on bringing back this.alt to actions, not much of a hack, but I kept the exportObj as it is to make the change as minimal as possible.

m7moud commented 8 years ago

I removed exportObj from the createActions function signature because it will break addActions down if you passed something else to it instead of an empty object, since addActions expects just an object of actions.

CrazyPython commented 6 years ago

Wait, why should an action need access to the alt instance? Shouldn't actions be pure functions?

m7moud commented 6 years ago

:D This was three years ago, I don't even remember why I create this PR.