Answer the question
In order to leave comments, you need to log in
How in Backbone to call a function in a view from another function of this view?
Actually, code example:
var AppView = Backbone.View.extend({
el: 'body',
events: {
'click p': 'event1',
},
event1: function(event) {
console.log('event-1');
// Как отсюда вызвать event-2?
},
event2: function(event) {
console.log('event-2');
}
});
var appView = new AppView();
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