Comments (3)
Hi @SimpleAsCouldBe, sorry this wasn't addressed sooner.
I'm tempted to say that this is something that belongs outside of Syphon, but could you provide me a use case for it?
from backbone.syphon.
It's been a long time since I thought about it. I think this applies to any form that the user might fill in partially, depending on needs. So like a profile screen or similar. If Syphon let me just ignore blank fields instead of including blank values it'd be a better/smaller JSON package.
from backbone.syphon.
What should Syphon do with blank fields?
If they're included, then when the caller performs a model.set
they're potentially going to wipe out some other fields that they're wanting to hold onto. However perhaps that's the desired behaviour.
My thought here is to expand the serialize API to allow for conditional blank key inclusion.
Thoughts?
from backbone.syphon.
Related Issues (20)
- Compatibility issue with Cocktail Library HOT 1
- Using with a Twitter Bootstrap styled form. HOT 2
- Uncaught TypeError: config.keyJoiner is not a function HOT 7
- [NFR] set a class to syphon non-form elements
- Wrong latest release on github (v0.6.1) HOT 3
- KeySplitter don't work for short parameter HOT 1
- deserialize doesnt appear to accept a model HOT 8
- Cannot read property 'toString' of undefined HOT 5
- Update cdnjs to point to this repo HOT 1
- Deserialize an undefined property matching a radio input HOT 5
- Provide more customizable formatter and writers HOT 1
- Add Backbone 1.3.* support HOT 6
- lib folder is not updated in major? HOT 1
- publish a new version to npm
- Support Lodash
- Allow Blank Fields to be Excluded
- Update Build HOT 1
- remove lodash from peerDependencies HOT 3
- add a "trim" option HOT 1
- backbone v1.3.3 to 1.4.0 in package.json
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from backbone.syphon.