Let's say I have the following Backbone structure:
var BrowserView = Backbone.View.extend({
el: 'body',
events: {
click : "onClickEvent"
},
initialize: function () {
this.collections = [];
}
});
var FileBrowserView = BrowserView.extend({
el: '#file',
className: 'file-class',
events: {
click: "onFileClick",
mouseover: "onMouseOver"
},
initialize: function () {
this.constructor.__super__.initialize.apply(this);
}
});
I need to override tagName, id, className, el properties from child View and combine events object from child view with parent view. How can I do that?