var ThreadItem = require( './ThreadItem.js' ); /** * A heading item * * @class HeadingItem * @extends ThreadItem * @constructor * @param {Object} range * @param {number} headingLevel Heading level (1-6) * @param {boolean} [placeholderHeading] Item doesn't correspond to a real heading (e.g. 0th section) */ function HeadingItem( range, headingLevel, placeholderHeading ) { // Parent constructor HeadingItem.super.call( this, 'heading', 0, range ); this.headingLevel = headingLevel; this.placeholderHeading = !!placeholderHeading; } OO.inheritClass( HeadingItem, ThreadItem ); module.exports = HeadingItem;