v0.6.3 view commit logs
- Update Backbone version range
v0.6.2 view commit logs
- Fix botched release :(
v0.6.1 view commit logs
- Fix the inability to find nested inputs in a form.
v0.6.0 view commit logs
- When no elements are found, Backbone.Syphon will not throw an exception
- Added note about using Backbone.Relational and circular references
- Typo fixes
- Travis now uses Docker images to speed up testing
- Uses
:input
instead ofform
to discover fields
- You can now ignore fields by selector
- When using indeterminate checkboxes, they will be a null value
v0.5.1 view commit logs
- Using falsy items in the
TypeRegistry
- Slight restructure of readme
- Add JSCS support for style linting and consistency
- Synchronized workflow tooling to match Marionette Core style
- Removal of stale Jasmine fragments
- Update of dependencies to match Marionette Core
- [FEATURE] Add
Syphon.VERSION
- [FEATURE] Add
Syphon.noConflict
- [FEATURE] Add UMD for Common.js/AMD modules and browser globals
- Publish to NPM, Bower, and Component.io
- Update jQuery dependency
- Update Underscore dependency
- Update Backbone dependency
- Fixed issue w/ field that has no name (or other specified identifier)
- Added support for nested field names, defaulting to Rails' standard of
foo[bar][baz]
- Added notion of
KeySplitter
to define how fields are split apart for nesting - Fixed issue w/ field that has no name (or other specified identifier)
- Fixed the AMD require statements to match Backbone.Marionette
- Ignore
fieldset
- Updated to Underscore v1.4.2
- Added Input Writers, to deserialize an object back in to a form
- The view's
el
can be aform
element directly
- Specify fields to include or exclude, when calling
.serialize
- Defaults to input element "name" for the key in the serialized object
- Added Key Extractors and Key Extractor Sets, allowing configuration of how the "key" in
{key: "value"}
serialized objects are generated - Added Key Assignment Validators and Key Assignment Validator sets, allowing you to validate a key / value pair and prevent it from being attached to the serialization result
- Input Readers are now a type that can be instantiated and replaced, wholesale, instead of just registered / removed
- Created Syphon.TypeRegistry base type which is used by Key Extractors, Input Readders and Key Assignment Validators
- Exposed the
Syphon.ignoredTypes
array, to allow manipulating which input types are ignored - Allow
keyExtractors
,inputReaders
andkeyAssignmentValidators
to be specified as part of the options for the call toserialize
- Ability to register Input Readers for elements other than
<input>
- An
<input>
element with notype
attribute will be treated as atext
input - Ignore elements of type "submit", "button" and "reset"
- Initial release
- Serialize a
<form>
tag and it's input elements in to a simple JavaScript object - Converts a checkbox in to a boolean value