all files / src/ce/ ve.ce.MetaItem.js

100% Statements 5/5
100% Branches 0/0
100% Functions 1/1
100% Lines 5/5
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30                                                 
/*!
 * VisualEditor ContentEditable MetaItem class.
 *
 * @copyright 2011-2019 VisualEditor Team and others; see http://ve.mit-license.org
 */
 
/**
 * ContentEditable meta item node.
 *
 * @class
 * @extends ve.ce.LeafNode
 * @constructor
 * @param {ve.dm.MetaItem} model Model to observe
 * @param {Object} [config] Configuration options
 */
ve.ce.MetaItem = function VeCeMetaItem( model, config ) {
	// Call parent constructor with explicit DOM node-less $element
	ve.ce.MetaItem.super.call( this, model, ve.extendObject( {}, config, { $element: $() } ) );
};
 
/* Inheritance */
 
OO.inheritClass( ve.ce.MetaItem, ve.ce.LeafNode );
 
/* Static Properties */
 
ve.ce.MetaItem.static.name = 'meta';
 
ve.ce.nodeFactory.register( ve.ce.MetaItem );