mediawiki-extensions-Visual.../modules/ve-mw/dm/nodes/ve.dm.MWGalleryNode.js
Roan Kattouw 4aeb773404 Add tagName to ve.dm.MWGalleryNode
I told James this wasn't needed, but I was wrong. It is null in
the parent class, and DOM throws on document.createElement(null).

Bug: 60307
Change-Id: Iff8fda9acf9f37e537d7d6cf6106a801d6b71338
2014-01-27 14:28:16 -08:00

36 lines
764 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*!
* VisualEditor DataModel MWGalleryNode class.
*
* @copyright 20112014 VisualEditor Team and others; see AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
/**
* DataModel MediaWiki gallery node.
*
* @class
* @extends ve.dm.MWExtensionNode
*
* @constructor
*/
ve.dm.MWGalleryNode = function VeDmMWGalleryNode( length, element ) {
// Parent constructor
ve.dm.MWExtensionNode.call( this, 0, element );
};
/* Inheritance */
OO.inheritClass( ve.dm.MWGalleryNode, ve.dm.MWExtensionNode );
/* Static members */
ve.dm.MWGalleryNode.static.name = 'mwGallery';
ve.dm.MWGalleryNode.static.extensionName = 'gallery';
ve.dm.MWGalleryNode.static.tagName = 'ul';
/* Registration */
ve.dm.modelRegistry.register( ve.dm.MWGalleryNode );