}, config );
// Parent constructor
- OO.ui.MenuOptionWidget.call( this, config );
+ mw.widgets.TitleOptionWidget.parent.call( this, config );
- // Intialization
+ // Initialization
this.$label.wrap( '<a>' );
this.$link = this.$label.parent();
this.$link.attr( 'href', config.href );
}
};
- /* Inheritance */
+ /* Setup */
OO.inheritClass( mw.widgets.TitleOptionWidget, OO.ui.MenuOptionWidget );