2014-01-15 03:04:58 +00:00
|
|
|
/*!
|
|
|
|
* VisualEditor DataModel MWGalleryNode class.
|
|
|
|
*
|
2015-01-08 23:54:03 +00:00
|
|
|
* @copyright 2011-2015 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
|
2014-05-20 11:56:37 +00:00
|
|
|
ve.dm.MWBlockExtensionNode.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 );
|