Answer the question
In order to leave comments, you need to log in
How to delete an object after it's initialized?
There is an ItemView:
define([
'backbone.marionette',
'hbs!templates/tables/left-container',
'views/tables/item/report-add-btn',
'views/tables/item/journal-operator/btn',
'views/tables/item/journal-anxiety/btn'
],
function (Marionette, LeftContainer, ReportAddBtn, JournalOperatorBtn, JournalAnxietyBtn) {
return Backbone.Marionette.ItemView.extend({
template: LeftContainer,
el: '.left-nav-container',
initialize: function () {
this.render();
new ReportAddBtn;
new JournalOperatorBtn;
new JournalAnxietyBtn;
}
});
});
new LeftContainer;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question