app.views.sidebar=Backbone.View.extend({initialize:function(){console.log("initializing sidebar view")},render:function(e){$(this.el).html(this.template());this.$("#link_dashboard").tooltip();this.$("#link_profile").tooltip();this.$("#link_password").tooltip();this.$("#link_report").tooltip();this.$("#link_logout").tooltip();this.$("#li_"+e).addClass("active");return this},destroy_view:function(){this.undelegateEvents();$(this.el).removeData().unbind();this.remove();Backbone.View.prototype.remove.call(this);app.global.sidebarView=null}})