Sha256: 4819b76ae9a7bf197bac94f8b1050e45bae33990d4c58188a4e7cb5b994a013d
Contents?: true
Size: 555 Bytes
Versions: 23
Compression:
Stored size: 555 Bytes
Contents
define(["view/base"],function(e){var t=e.extend({initialize:function(e){this.templar=e.templar,_.bindAll(this),this.currentNav={secondary:{nav:{ecosystem:!0,dashboard:!1}}},Backbone.Mediator.sub("view:dashboard:render",this.render,this),Backbone.Mediator.sub("controller:dashboard:init",this.render,this),this.render()},render:function(e){this.destructor(),this.previous=self.currentNav,_.extend(this.currentNav.secondary,e),this.templar.render({path:"secondarynav",el:this.$el,data:this.currentNav})},destructor:function(){this.$el.empty()}});return t});
Version data entries
23 entries across 23 versions & 1 rubygems