backbone.modelbinding icon indicating copy to clipboard operation
backbone.modelbinding copied to clipboard

Don't add "undefined" attribute to model

Open Yahasana opened this issue 13 years ago • 1 comments

HTML <input type="text" />

Model binding Backbone.ModelBinding.bind(this, {all:'name'});

as this input without name attribute, ModelBinding will add a "undefined" to model object.

Sumh [email protected]

Yahasana avatar Feb 29 '12 15:02 Yahasana

+1 for this being pulled. I've found this quite problematic in the past.

rapidrapids avatar May 12 '12 08:05 rapidrapids