VoliJS / NestedTypes

BackboneJS compatibility layer for Type-R data framework.
https://volicon.github.io/Type-R/
MIT License
94 stars 17 forks source link

Model toJSON : false setting #112

Open gaperton opened 9 years ago

gaperton commented 9 years ago

Sometimes only a few attributes needs to be serialized. Usually happens in models representing UI state. Thus, model spec becomes too clumsy.

Support following Model.toJSON option:

toJSON : false, // mark all attributes except id as toJSON( false ) by default