This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Link for later. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Mix regions into Backbone Views that don't have them. | |
var Mixins = { | |
Regions: {} | |
}; | |
Mixins.Regions = function (parent) { | |
var initialize = parent.prototype.initialize, | |
render = parent.prototype.render, | |
close = parent.prototype.close, | |
functions = ['addRegion', 'addRegions', 'removeRegion', '_buildRegions', |