documentcloud/backbone — pull request #1348 by ioncreature (2012-05-25 22:06:07+00:00)
Title: Needs method for calling overrided parent methods

Added method .inherited( methodName, args ) in extend method.
Using:
var AbstractLayout = Backbone.View.extend({
getChildren: function(){
return this.children;
}
});

var ConcreteLayout = AbstractLayout.extend({
getChildren: function(){
return this.inherited( 'getChildren', arguments ).filter( funtion( child ){
return Boolean( child.visible )
});
}
})

var layout = new ConcreteLayout,
children = layout.getChildren();