Category Coding

Mix-ins in Javascript Backbone Views using Underscore

Summary If you need to reuse code between two views that cannot make each other references use mixin approach outlined here to get reuse. The Problem We some time need code that is defined in one view in another view.  Classic example is that mainview.js knows how to show and hide different parts of the sub view […]