Backbone.js: access parent view from child view?
Pass this
as an option to the child view on initialization step:
var ChildView = Backbone.View.extend({
initialize : function (options) {
this.parent = options.parent;
}
});
// somewhere in the parent view ...
new ChildView({parent:this});