lodash 4.x support
ludoo0d0a opened this issue · 1 comments
ludoo0d0a commented
Please add lodash 4.x support
This code won't work anymore :
_.each(fieldsetSchema, function(itemSchema) {
this.fieldsets.push(this.createFieldset(itemSchema));
}, this);
Because :
Removed thisArg params from most methods because they were largely unused, complicated implementations, & can be tackled with _.bind, Function#bind, or arrow functions
glenpike commented
Note-to-self:
_.each() use with binding
https://github.com/powmedia/backbone-forms/blob/master/distribution/backbone-forms.js#L92
https://github.com/powmedia/backbone-forms/blob/master/distribution/backbone-forms.js#L101
https://github.com/powmedia/backbone-forms/blob/master/distribution/backbone-forms.js#L1967
https://github.com/powmedia/backbone-forms/blob/master/distribution/backbone-forms.js#L1840