Picture of Kev Adsett
Re: Adapt OOP principles, and the 'mutate' function
by Kev Adsett - Monday, 7 October 2013, 8:14 AM

Hi Chris, 

We've not actually modified Backbone's core so no forking is required. At the moment, this exists in the AbstractView class (for now), which all Adapt views will (eventually) inherit from. I agree that taking it out and making a library of it's own that can sit as a layer between Backbone and Adapt is a good idea, and also means that we can hopefully reduce code re-use as the functions can be available to views, models, routers, and collections, without having to maintain the code in those four places.