mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 06:46:26 +00:00
Merge "Added the missing "Node" to alien dm class names"
This commit is contained in:
commit
23e3726a04
|
@ -14,7 +14,7 @@
|
||||||
* @param {Integer} [length] Length of content data in document
|
* @param {Integer} [length] Length of content data in document
|
||||||
* @param {Object} [attributes] Reference to map of attribute key/value pairs
|
* @param {Object} [attributes] Reference to map of attribute key/value pairs
|
||||||
*/
|
*/
|
||||||
ve.dm.AlienBlock = function( length, attributes ) {
|
ve.dm.AlienBlockNode = function( length, attributes ) {
|
||||||
// Inheritance
|
// Inheritance
|
||||||
ve.dm.LeafNode.call( this, 'alienBlock', 0, attributes );
|
ve.dm.LeafNode.call( this, 'alienBlock', 0, attributes );
|
||||||
};
|
};
|
||||||
|
@ -28,7 +28,7 @@ ve.dm.AlienBlock = function( length, attributes ) {
|
||||||
* @static
|
* @static
|
||||||
* @member
|
* @member
|
||||||
*/
|
*/
|
||||||
ve.dm.AlienBlock.rules = {
|
ve.dm.AlienBlockNode.rules = {
|
||||||
'isWrapped': true,
|
'isWrapped': true,
|
||||||
'isContent': false,
|
'isContent': false,
|
||||||
'canContainContent': false,
|
'canContainContent': false,
|
||||||
|
@ -37,12 +37,12 @@ ve.dm.AlienBlock.rules = {
|
||||||
};
|
};
|
||||||
|
|
||||||
// This is a special node, no converter registration is required
|
// This is a special node, no converter registration is required
|
||||||
ve.dm.AlienBlock.converters = null;
|
ve.dm.AlienBlockNode.converters = null;
|
||||||
|
|
||||||
/* Registration */
|
/* Registration */
|
||||||
|
|
||||||
ve.dm.nodeFactory.register( 'alienBlock', ve.dm.AlienBlock );
|
ve.dm.nodeFactory.register( 'alienBlock', ve.dm.AlienBlockNode );
|
||||||
|
|
||||||
/* Inheritance */
|
/* Inheritance */
|
||||||
|
|
||||||
ve.extendClass( ve.dm.AlienBlock, ve.dm.LeafNode );
|
ve.extendClass( ve.dm.AlienBlockNode, ve.dm.LeafNode );
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
* @param {Integer} [length] Length of content data in document
|
* @param {Integer} [length] Length of content data in document
|
||||||
* @param {Object} [attributes] Reference to map of attribute key/value pairs
|
* @param {Object} [attributes] Reference to map of attribute key/value pairs
|
||||||
*/
|
*/
|
||||||
ve.dm.AlienInline = function( length, attributes ) {
|
ve.dm.AlienInlineNode = function( length, attributes ) {
|
||||||
// Inheritance
|
// Inheritance
|
||||||
ve.dm.LeafNode.call( this, 'alienInline', 0, attributes );
|
ve.dm.LeafNode.call( this, 'alienInline', 0, attributes );
|
||||||
};
|
};
|
||||||
|
@ -28,7 +28,7 @@ ve.dm.AlienInline = function( length, attributes ) {
|
||||||
* @static
|
* @static
|
||||||
* @member
|
* @member
|
||||||
*/
|
*/
|
||||||
ve.dm.AlienInline.rules = {
|
ve.dm.AlienInlineNode.rules = {
|
||||||
'isWrapped': true,
|
'isWrapped': true,
|
||||||
'isContent': true,
|
'isContent': true,
|
||||||
'canContainContent': false,
|
'canContainContent': false,
|
||||||
|
@ -37,12 +37,12 @@ ve.dm.AlienInline.rules = {
|
||||||
};
|
};
|
||||||
|
|
||||||
// This is a special node, no converter registration is required
|
// This is a special node, no converter registration is required
|
||||||
ve.dm.AlienInline.converters = null;
|
ve.dm.AlienInlineNode.converters = null;
|
||||||
|
|
||||||
/* Registration */
|
/* Registration */
|
||||||
|
|
||||||
ve.dm.nodeFactory.register( 'alienInline', ve.dm.AlienInline );
|
ve.dm.nodeFactory.register( 'alienInline', ve.dm.AlienInlineNode );
|
||||||
|
|
||||||
/* Inheritance */
|
/* Inheritance */
|
||||||
|
|
||||||
ve.extendClass( ve.dm.AlienInline, ve.dm.LeafNode );
|
ve.extendClass( ve.dm.AlienInlineNode, ve.dm.LeafNode );
|
||||||
|
|
Loading…
Reference in a new issue