You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to use it with lodash instead of underscore. If I rewrite one part of the ModelBinder script from underscore to lodash, my app works perfectly.
It will be great if you can make it work with both underscore and lodash as Backbone.js does.
Please let me know if you are not planning to add this feature.
The text was updated successfully, but these errors were encountered:
I like lodash and would be happy to have the model binder work with either Underscore or Lodash as a configuration option. I know they are supposed to be interchangeable but I was bitten by several inconsistencies a few months ago. If you want to post the changes you had to made as a gist etc. let me know and I'll try to incorporate it in the main line.
So far, I just changed the line below, and it is working.
From
define(['underscore', 'jquery', 'backbone'], factory);
To
define(['lodash', 'jquery', 'backbone'], factory);
It tries to load underscore.js if my App has not loaded underscore whereas lodash is loaded.
I didn't know they had several inconsistencies, but I'll report if I got any problems.
First of all, thanks for the great plug in.
I would like to use it with lodash instead of underscore. If I rewrite one part of the ModelBinder script from underscore to lodash, my app works perfectly.
It will be great if you can make it work with both underscore and lodash as Backbone.js does.
Please let me know if you are not planning to add this feature.
The text was updated successfully, but these errors were encountered: