Proper way of doing view mixins in Backbone
The underscore.js library provides an extend method that does what you want. You can define functionality on any object, and then quite literally copy & paste all of the methods and attributes from that object to another. Backbone’s extend methods on Views, Models, and Routers are a wrapper around underscore’s extend. var MyMixin = { … Read more