Sha256: a92af623282c9940e0c929ef26c2697da73d9d827ce9e06e5df4b1e9bb20c7ee
Contents?: true
Size: 1.1 KB
Versions: 23
Compression:
Stored size: 1.1 KB
Contents
define([ 'view/base' ], function( BaseView ){ var SecondaryNavView = BaseView.extend({ initialize : function(options) { this.templar = options.templar; _.bindAll(this); this.currentNav = { 'secondary' : { 'nav' : { 'ecosystem' : true, 'dashboard' : false } } }; Backbone.Mediator.sub('view:dashboard:render', this.render, this); Backbone.Mediator.sub('controller:dashboard:init', this.render, this); this.render(); }, render : function(data) { this.destructor(); this.previous = self.currentNav; _.extend(this.currentNav.secondary, data); this.templar.render({ path : 'secondarynav', el : this.$el, data : this.currentNav }); }, destructor : function() { this.$el.empty(); } }); return SecondaryNavView; });
Version data entries
23 entries across 23 versions & 1 rubygems