GeppettoJS / backbone.geppetto

Bring your Backbone applications to life with an event-driven Command framework.
http://geppettojs.github.com/backbone.geppetto/
MIT License
203 stars 28 forks source link

Not compatible with lodash 4.17 #92

Open trystian1 opened 6 years ago

trystian1 commented 6 years ago

Geppetto cannot be used with lodash 4.17. Since lodash dropped support for binding this to their functions

         _.each(wiring.values, function(value, key) {
                this.wireValue(key, value);
            }, this)

should be

_.each(wiring.values, (value, key) => {
          this.wireValue(key, value);
});
trystian1 commented 6 years ago

This should fix it: https://github.com/GeppettoJS/backbone.geppetto/pull/93