2014-01-15 03:04:58 +00:00
|
|
|
/*!
|
|
|
|
* VisualEditor DataModel MWGalleryNode class.
|
|
|
|
*
|
2018-01-03 00:54:47 +00:00
|
|
|
* @copyright 2011-2018 VisualEditor Team and others; see AUTHORS.txt
|
2014-01-15 03:04:58 +00:00
|
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* DataModel MediaWiki gallery node.
|
|
|
|
*
|
|
|
|
* @class
|
2014-05-20 11:56:37 +00:00
|
|
|
* @extends ve.dm.MWBlockExtensionNode
|
2014-01-15 03:04:58 +00:00
|
|
|
*
|
|
|
|
* @constructor
|
2014-06-07 03:17:26 +00:00
|
|
|
* @param {Object} [element] Reference to element in linear model
|
2014-01-15 03:04:58 +00:00
|
|
|
*/
|
2014-06-07 03:17:26 +00:00
|
|
|
ve.dm.MWGalleryNode = function VeDmMWGalleryNode() {
|
2014-01-15 03:04:58 +00:00
|
|
|
// Parent constructor
|
2016-08-22 21:44:59 +00:00
|
|
|
ve.dm.MWGalleryNode.super.apply( this, arguments );
|
2014-01-15 03:04:58 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* Inheritance */
|
|
|
|
|
2014-05-20 11:56:37 +00:00
|
|
|
OO.inheritClass( ve.dm.MWGalleryNode, ve.dm.MWBlockExtensionNode );
|
2014-01-15 03:04:58 +00:00
|
|
|
|
|
|
|
/* Static members */
|
|
|
|
|
|
|
|
ve.dm.MWGalleryNode.static.name = 'mwGallery';
|
|
|
|
|
|
|
|
ve.dm.MWGalleryNode.static.extensionName = 'gallery';
|
|
|
|
|
2014-01-27 21:45:46 +00:00
|
|
|
ve.dm.MWGalleryNode.static.tagName = 'ul';
|
|
|
|
|
2014-01-15 03:04:58 +00:00
|
|
|
/* Registration */
|
|
|
|
|
|
|
|
ve.dm.modelRegistry.register( ve.dm.MWGalleryNode );
|