/*! * VisualEditor UserInterface MWTocItemWidget class. * * @copyright 2011-2015 VisualEditor Team and others; see AUTHORS.txt * @license The MIT License (MIT); see LICENSE.txt */ /** * Creates an item an item for the MWTocWidget * * @class * @extends OO.ui.Widget * @mixins OO.ui.mixin.GroupElement * * @constructor * @param {Object} config TOC Item configuration * @cfg {ve.ce.Node} node ContentEditable node * @cfg {ve.ui.MWTocItemWidget} parent Parent toc item * @cfg {string} sectionPrefix TOC item section number * @cfg {number} tocLevel Depth level of the TOC item * @cfg {number} tocIndex Running count of TOC items * */ ve.ui.MWTocItemWidget = function VeUiMWTocItemWidget( config ) { // Parent constructor OO.ui.Widget.call( this, config ); // Mixin Constructor OO.ui.mixin.GroupElement.call( this, $.extend( {}, config, { $group: $( '