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

Do not bind if attribute_name is undefined

Open nilcolor opened this issue 12 years ago • 0 comments

So afeld/backbone-nested doesn't crushes…

If using backbone.modelbind + backbone-nested and mix StandardBinding with DataBindBinding on input fields - I've got an error TypeError: 'undefined' is not an object (evaluating 'attrPath[0]') inside of backbone-nested. Caused by attempt to bind with undefined attribute_name in StandardBinding. This is simple fix for that.

nilcolor avatar Apr 16 '12 12:04 nilcolor