In Marionette, how might I go about calling a function of the same name on the parent object of a view without overwriting the original function?
For instance:
var someView = new Backbone.Marionette.ItemView.extend({
onRender: function () {
console.log('foo');
}
});
var anotherView = someView.extend({
onRender: function () {
// call someView's original onRender function
console.log('bar');
}
});
anotherView.render();
Resulting in the console output:
foo
bar