mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
842688c51b
'Cos Erik doesn't like things he can't edit. Change-Id: I1d9fb1215bb16b1245eddd87c977fb5bfdee4da9
34 lines
720 B
JavaScript
34 lines
720 B
JavaScript
/*!
|
||
* VisualEditor DataModel MWGalleryNode class.
|
||
*
|
||
* @copyright 2011–2014 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';
|
||
|
||
/* Registration */
|
||
|
||
ve.dm.modelRegistry.register( ve.dm.MWGalleryNode );
|