/*! * VisualEditor UserInterface MWTocItemWidget class. * * @copyright 2011-2014 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.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 VeCeMWTocItemWidget ( config ) { // Parent constructor OO.ui.Widget.call( this, config ); // Mixin Constructor OO.ui.GroupElement.call( this, this.$( '