Fluxo is a simple, lightweight (~300LOC) and dependency free data infrastructure lib based on Facebook Flux and Backbone.js. It's compatible with React.js, but you can use with whatever you want to the view/component layer.
15
stars
3
forks
source link
Removing "data" padding key on Fluxo.CollectionStore toJSON #16
A collection usually doesn't have too many attributes, generally it has just some
computed properties and subsets.
The store data placed on "data" key create a useless difference between a single
store toJSON, that just export the data without any "padding key", and a collection
store toJSON. This was a initial decision to avoid toJSON attributes clash, but
collections having a few attributes and it being a problem only if developer use
store and subsets name as collection store's attributes this commit removes the
"data" padding key.
A collection usually doesn't have too many attributes, generally it has just some computed properties and subsets.
The store data placed on "data" key create a useless difference between a single store toJSON, that just export the data without any "padding key", and a collection store toJSON. This was a initial decision to avoid toJSON attributes clash, but collections having a few attributes and it being a problem only if developer use store and subsets name as collection store's attributes this commit removes the "data" padding key.