jenkins-bot has submitted this change and it was merged.
Change subject: Use .super in nodes, annotations, meta and lineardata
implementations
......................................................................
Use .super in nodes, annotations, meta and lineardata implementations
Change-Id: I5039a802d0add69b8977d1f37aaddb71b15ff90e
---
M src/ce/annotations/ve.ce.AbbreviationAnnotation.js
M src/ce/annotations/ve.ce.BigAnnotation.js
M src/ce/annotations/ve.ce.BoldAnnotation.js
M src/ce/annotations/ve.ce.CodeAnnotation.js
M src/ce/annotations/ve.ce.CodeSampleAnnotation.js
M src/ce/annotations/ve.ce.DatetimeAnnotation.js
M src/ce/annotations/ve.ce.DefinitionAnnotation.js
M src/ce/annotations/ve.ce.HighlightAnnotation.js
M src/ce/annotations/ve.ce.ItalicAnnotation.js
M src/ce/annotations/ve.ce.LanguageAnnotation.js
M src/ce/annotations/ve.ce.LinkAnnotation.js
M src/ce/annotations/ve.ce.QuotationAnnotation.js
M src/ce/annotations/ve.ce.SmallAnnotation.js
M src/ce/annotations/ve.ce.SpanAnnotation.js
M src/ce/annotations/ve.ce.StrikethroughAnnotation.js
M src/ce/annotations/ve.ce.SubscriptAnnotation.js
M src/ce/annotations/ve.ce.SuperscriptAnnotation.js
M src/ce/annotations/ve.ce.TextStyleAnnotation.js
M src/ce/annotations/ve.ce.UnderlineAnnotation.js
M src/ce/annotations/ve.ce.UserInputAnnotation.js
M src/ce/annotations/ve.ce.VariableAnnotation.js
M src/ce/nodes/ve.ce.AlienNode.js
M src/ce/nodes/ve.ce.BlockImageCaptionNode.js
M src/ce/nodes/ve.ce.BlockImageNode.js
M src/ce/nodes/ve.ce.BreakNode.js
M src/ce/nodes/ve.ce.CenterNode.js
M src/ce/nodes/ve.ce.CommentNode.js
M src/ce/nodes/ve.ce.DefinitionListItemNode.js
M src/ce/nodes/ve.ce.DefinitionListNode.js
M src/ce/nodes/ve.ce.DivNode.js
M src/ce/nodes/ve.ce.DocumentNode.js
M src/ce/nodes/ve.ce.HeadingNode.js
M src/ce/nodes/ve.ce.InlineImageNode.js
M src/ce/nodes/ve.ce.InternalItemNode.js
M src/ce/nodes/ve.ce.InternalListNode.js
M src/ce/nodes/ve.ce.ListItemNode.js
M src/ce/nodes/ve.ce.ListNode.js
M src/ce/nodes/ve.ce.ParagraphNode.js
M src/ce/nodes/ve.ce.PreformattedNode.js
M src/ce/nodes/ve.ce.TableCaptionNode.js
M src/ce/nodes/ve.ce.TableCellNode.js
M src/ce/nodes/ve.ce.TableNode.js
M src/ce/nodes/ve.ce.TableRowNode.js
M src/ce/nodes/ve.ce.TableSectionNode.js
M src/ce/nodes/ve.ce.TextNode.js
M src/dm/annotations/ve.dm.AbbreviationAnnotation.js
M src/dm/annotations/ve.dm.BigAnnotation.js
M src/dm/annotations/ve.dm.BoldAnnotation.js
M src/dm/annotations/ve.dm.CodeAnnotation.js
M src/dm/annotations/ve.dm.CodeSampleAnnotation.js
M src/dm/annotations/ve.dm.DatetimeAnnotation.js
M src/dm/annotations/ve.dm.DefinitionAnnotation.js
M src/dm/annotations/ve.dm.HighlightAnnotation.js
M src/dm/annotations/ve.dm.ItalicAnnotation.js
M src/dm/annotations/ve.dm.LanguageAnnotation.js
M src/dm/annotations/ve.dm.LinkAnnotation.js
M src/dm/annotations/ve.dm.QuotationAnnotation.js
M src/dm/annotations/ve.dm.SmallAnnotation.js
M src/dm/annotations/ve.dm.SpanAnnotation.js
M src/dm/annotations/ve.dm.StrikethroughAnnotation.js
M src/dm/annotations/ve.dm.SubscriptAnnotation.js
M src/dm/annotations/ve.dm.SuperscriptAnnotation.js
M src/dm/annotations/ve.dm.TextStyleAnnotation.js
M src/dm/annotations/ve.dm.UnderlineAnnotation.js
M src/dm/annotations/ve.dm.UserInputAnnotation.js
M src/dm/annotations/ve.dm.VariableAnnotation.js
M src/dm/lineardata/ve.dm.ElementLinearData.js
M src/dm/lineardata/ve.dm.FlatLinearData.js
M src/dm/lineardata/ve.dm.MetaLinearData.js
M src/dm/metaitems/ve.dm.AlienMetaItem.js
M src/dm/metaitems/ve.dm.CommentMetaItem.js
M src/dm/nodes/ve.dm.AlienNode.js
M src/dm/nodes/ve.dm.BlockImageCaptionNode.js
M src/dm/nodes/ve.dm.BlockImageNode.js
M src/dm/nodes/ve.dm.BreakNode.js
M src/dm/nodes/ve.dm.CenterNode.js
M src/dm/nodes/ve.dm.CommentNode.js
M src/dm/nodes/ve.dm.DefinitionListItemNode.js
M src/dm/nodes/ve.dm.DefinitionListNode.js
M src/dm/nodes/ve.dm.DivNode.js
M src/dm/nodes/ve.dm.DocumentNode.js
M src/dm/nodes/ve.dm.HeadingNode.js
M src/dm/nodes/ve.dm.InlineImageNode.js
M src/dm/nodes/ve.dm.InternalItemNode.js
M src/dm/nodes/ve.dm.InternalListNode.js
M src/dm/nodes/ve.dm.ListItemNode.js
M src/dm/nodes/ve.dm.ListNode.js
M src/dm/nodes/ve.dm.ParagraphNode.js
M src/dm/nodes/ve.dm.PreformattedNode.js
M src/dm/nodes/ve.dm.TableCaptionNode.js
M src/dm/nodes/ve.dm.TableCellNode.js
M src/dm/nodes/ve.dm.TableNode.js
M src/dm/nodes/ve.dm.TableRowNode.js
M src/dm/nodes/ve.dm.TableSectionNode.js
M src/dm/nodes/ve.dm.TextNode.js
95 files changed, 187 insertions(+), 181 deletions(-)
Approvals:
Catrope: Looks good to me, approved
jenkins-bot: Verified
diff --git a/src/ce/annotations/ve.ce.AbbreviationAnnotation.js
b/src/ce/annotations/ve.ce.AbbreviationAnnotation.js
index af6f9b6..1b32552 100644
--- a/src/ce/annotations/ve.ce.AbbreviationAnnotation.js
+++ b/src/ce/annotations/ve.ce.AbbreviationAnnotation.js
@@ -14,9 +14,9 @@
* @param {ve.ce.ContentBranchNode} [parentNode] Node rendering this annotation
* @param {Object} [config] Configuration options
*/
-ve.ce.AbbreviationAnnotation = function VeCeAbbreviationAnnotation( model,
parentNode, config ) {
+ve.ce.AbbreviationAnnotation = function VeCeAbbreviationAnnotation() {
// Parent constructor
- ve.ce.TextStyleAnnotation.call( this, model, parentNode, config );
+ ve.ce.AbbreviationAnnotation.super.apply( this, arguments );
// DOM changes
this.$element.addClass( 've-ce-abbreviationAnnotation' );
diff --git a/src/ce/annotations/ve.ce.BigAnnotation.js
b/src/ce/annotations/ve.ce.BigAnnotation.js
index 2afa0f8..d1ab434 100644
--- a/src/ce/annotations/ve.ce.BigAnnotation.js
+++ b/src/ce/annotations/ve.ce.BigAnnotation.js
@@ -14,9 +14,9 @@
* @param {ve.ce.ContentBranchNode} [parentNode] Node rendering this annotation
* @param {Object} [config] Configuration options
*/
-ve.ce.BigAnnotation = function VeCeBigAnnotation( model, parentNode, config ) {
+ve.ce.BigAnnotation = function VeCeBigAnnotation() {
// Parent constructor
- ve.ce.TextStyleAnnotation.call( this, model, parentNode, config );
+ ve.ce.BigAnnotation.super.apply( this, arguments );
// DOM changes
this.$element.addClass( 've-ce-bigAnnotation' );
diff --git a/src/ce/annotations/ve.ce.BoldAnnotation.js
b/src/ce/annotations/ve.ce.BoldAnnotation.js
index 28872b8..0492e19 100644
--- a/src/ce/annotations/ve.ce.BoldAnnotation.js
+++ b/src/ce/annotations/ve.ce.BoldAnnotation.js
@@ -14,9 +14,9 @@
* @param {ve.ce.ContentBranchNode} [parentNode] Node rendering this annotation
* @param {Object} [config] Configuration options
*/
-ve.ce.BoldAnnotation = function VeCeBoldAnnotation( model, parentNode, config
) {
+ve.ce.BoldAnnotation = function VeCeBoldAnnotation() {
// Parent constructor
- ve.ce.TextStyleAnnotation.call( this, model, parentNode, config );
+ ve.ce.BoldAnnotation.super.apply( this, arguments );
// DOM changes
this.$element.addClass( 've-ce-boldAnnotation' );
diff --git a/src/ce/annotations/ve.ce.CodeAnnotation.js
b/src/ce/annotations/ve.ce.CodeAnnotation.js
index 7cfae74..3b26ada 100644
--- a/src/ce/annotations/ve.ce.CodeAnnotation.js
+++ b/src/ce/annotations/ve.ce.CodeAnnotation.js
@@ -14,9 +14,9 @@
* @param {ve.ce.ContentBranchNode} [parentNode] Node rendering this annotation
* @param {Object} [config] Configuration options
*/
-ve.ce.CodeAnnotation = function VeCeCodeAnnotation( model, parentNode, config
) {
+ve.ce.CodeAnnotation = function VeCeCodeAnnotation() {
// Parent constructor
- ve.ce.TextStyleAnnotation.call( this, model, parentNode, config );
+ ve.ce.CodeAnnotation.super.apply( this, arguments );
// DOM changes
this.$element.addClass( 've-ce-codeAnnotation' );
diff --git a/src/ce/annotations/ve.ce.CodeSampleAnnotation.js
b/src/ce/annotations/ve.ce.CodeSampleAnnotation.js
index b8ab6ed..cb16390 100644
--- a/src/ce/annotations/ve.ce.CodeSampleAnnotation.js
+++ b/src/ce/annotations/ve.ce.CodeSampleAnnotation.js
@@ -14,9 +14,9 @@
* @param {ve.ce.ContentBranchNode} [parentNode] Node rendering this annotation
* @param {Object} [config] Configuration options
*/
-ve.ce.CodeSampleAnnotation = function VeCeCodeSampleAnnotation( model,
parentNode, config ) {
+ve.ce.CodeSampleAnnotation = function VeCeCodeSampleAnnotation() {
// Parent constructor
- ve.ce.TextStyleAnnotation.call( this, model, parentNode, config );
+ ve.ce.CodeSampleAnnotation.super.apply( this, arguments );
// DOM changes
this.$element.addClass( 've-ce-codeSampleAnnotation' );
diff --git a/src/ce/annotations/ve.ce.DatetimeAnnotation.js
b/src/ce/annotations/ve.ce.DatetimeAnnotation.js
index bfef1cd..1d45c2e 100644
--- a/src/ce/annotations/ve.ce.DatetimeAnnotation.js
+++ b/src/ce/annotations/ve.ce.DatetimeAnnotation.js
@@ -14,9 +14,9 @@
* @param {ve.ce.ContentBranchNode} [parentNode] Node rendering this annotation
* @param {Object} [config] Configuration options
*/
-ve.ce.DatetimeAnnotation = function VeCeDatetimeAnnotation( model, parentNode,
config ) {
+ve.ce.DatetimeAnnotation = function VeCeDatetimeAnnotation() {
// Parent constructor
- ve.ce.TextStyleAnnotation.call( this, model, parentNode, config );
+ ve.ce.DatetimeAnnotation.super.apply( this, arguments );
// DOM changes
this.$element.addClass( 've-ce-datetimeAnnotation' );
diff --git a/src/ce/annotations/ve.ce.DefinitionAnnotation.js
b/src/ce/annotations/ve.ce.DefinitionAnnotation.js
index 1bc4ea1..de45f35 100644
--- a/src/ce/annotations/ve.ce.DefinitionAnnotation.js
+++ b/src/ce/annotations/ve.ce.DefinitionAnnotation.js
@@ -14,9 +14,9 @@
* @param {ve.ce.ContentBranchNode} [parentNode] Node rendering this annotation
* @param {Object} [config] Configuration options
*/
-ve.ce.DefinitionAnnotation = function VeCeDefinitionAnnotation( model,
parentNode, config ) {
+ve.ce.DefinitionAnnotation = function VeCeDefinitionAnnotation() {
// Parent constructor
- ve.ce.TextStyleAnnotation.call( this, model, parentNode, config );
+ ve.ce.DefinitionAnnotation.super.apply( this, arguments );
// DOM changes
this.$element.addClass( 've-ce-definitionAnnotation' );
diff --git a/src/ce/annotations/ve.ce.HighlightAnnotation.js
b/src/ce/annotations/ve.ce.HighlightAnnotation.js
index 6fcfe89..9b6b527 100644
--- a/src/ce/annotations/ve.ce.HighlightAnnotation.js
+++ b/src/ce/annotations/ve.ce.HighlightAnnotation.js
@@ -14,9 +14,9 @@
* @param {ve.ce.ContentBranchNode} [parentNode] Node rendering this annotation
* @param {Object} [config] Configuration options
*/
-ve.ce.HighlightAnnotation = function VeCeHighlightAnnotation( model,
parentNode, config ) {
+ve.ce.HighlightAnnotation = function VeCeHighlightAnnotation() {
// Parent constructor
- ve.ce.TextStyleAnnotation.call( this, model, parentNode, config );
+ ve.ce.HighlightAnnotation.super.apply( this, arguments );
// DOM changes
this.$element.addClass( 've-ce-highlightAnnotation' );
diff --git a/src/ce/annotations/ve.ce.ItalicAnnotation.js
b/src/ce/annotations/ve.ce.ItalicAnnotation.js
index a4ba93c..03e9f01 100644
--- a/src/ce/annotations/ve.ce.ItalicAnnotation.js
+++ b/src/ce/annotations/ve.ce.ItalicAnnotation.js
@@ -14,9 +14,9 @@
* @param {ve.ce.ContentBranchNode} [parentNode] Node rendering this annotation
* @param {Object} [config] Configuration options
*/
-ve.ce.ItalicAnnotation = function VeCeItalicAnnotation( model, parentNode,
config ) {
+ve.ce.ItalicAnnotation = function VeCeItalicAnnotation() {
// Parent constructor
- ve.ce.TextStyleAnnotation.call( this, model, parentNode, config );
+ ve.ce.ItalicAnnotation.super.apply( this, arguments );
// DOM changes
this.$element.addClass( 've-ce-italicAnnotation' );
diff --git a/src/ce/annotations/ve.ce.LanguageAnnotation.js
b/src/ce/annotations/ve.ce.LanguageAnnotation.js
index 6dd935c..78e8879 100644
--- a/src/ce/annotations/ve.ce.LanguageAnnotation.js
+++ b/src/ce/annotations/ve.ce.LanguageAnnotation.js
@@ -14,20 +14,17 @@
* @param {ve.ce.ContentBranchNode} [parentNode] Node rendering this annotation
* @param {Object} [config] Configuration options
*/
-ve.ce.LanguageAnnotation = function VeCeLanguageAnnotation( model, parentNode,
config ) {
- var lang = model.getAttribute( 'lang' ),
- dir = model.getAttribute( 'dir' );
-
+ve.ce.LanguageAnnotation = function VeCeLanguageAnnotation() {
// Parent constructor
- ve.ce.Annotation.call( this, model, parentNode, config );
+ ve.ce.LanguageAnnotation.super.apply( this, arguments );
// DOM changes
this.$element
.addClass( 've-ce-languageAnnotation' )
.addClass( 've-ce-bidi-isolate' )
.attr( {
- lang: lang,
- dir: dir,
+ lang: this.model.getAttribute( 'lang' ),
+ dir: this.model.getAttribute( 'dir' ),
title: this.constructor.static.getDescription(
this.model )
} );
};
diff --git a/src/ce/annotations/ve.ce.LinkAnnotation.js
b/src/ce/annotations/ve.ce.LinkAnnotation.js
index 12a9388..e0e2baf 100644
--- a/src/ce/annotations/ve.ce.LinkAnnotation.js
+++ b/src/ce/annotations/ve.ce.LinkAnnotation.js
@@ -14,9 +14,9 @@
* @param {ve.ce.ContentBranchNode} [parentNode] Node rendering this annotation
* @param {Object} [config] Configuration options
*/
-ve.ce.LinkAnnotation = function VeCeLinkAnnotation( model, parentNode, config
) {
+ve.ce.LinkAnnotation = function VeCeLinkAnnotation() {
// Parent constructor
- ve.ce.Annotation.call( this, model, parentNode, config );
+ ve.ce.LinkAnnotation.super.apply( this, arguments );
// DOM changes
this.$element
diff --git a/src/ce/annotations/ve.ce.QuotationAnnotation.js
b/src/ce/annotations/ve.ce.QuotationAnnotation.js
index cb6af49..915fa30 100644
--- a/src/ce/annotations/ve.ce.QuotationAnnotation.js
+++ b/src/ce/annotations/ve.ce.QuotationAnnotation.js
@@ -14,9 +14,9 @@
* @param {ve.ce.ContentBranchNode} [parentNode] Node rendering this annotation
* @param {Object} [config] Configuration options
*/
-ve.ce.QuotationAnnotation = function VeCeQuotationAnnotation( model,
parentNode, config ) {
+ve.ce.QuotationAnnotation = function VeCeQuotationAnnotation() {
// Parent constructor
- ve.ce.TextStyleAnnotation.call( this, model, parentNode, config );
+ ve.ce.QuotationAnnotation.super.apply( this, arguments );
// DOM changes
this.$element.addClass( 've-ce-quotationAnnotation' );
diff --git a/src/ce/annotations/ve.ce.SmallAnnotation.js
b/src/ce/annotations/ve.ce.SmallAnnotation.js
index 0123b24..88d7329 100644
--- a/src/ce/annotations/ve.ce.SmallAnnotation.js
+++ b/src/ce/annotations/ve.ce.SmallAnnotation.js
@@ -14,9 +14,9 @@
* @param {ve.ce.ContentBranchNode} [parentNode] Node rendering this annotation
* @param {Object} [config] Configuration options
*/
-ve.ce.SmallAnnotation = function VeCeSmallAnnotation( model, parentNode,
config ) {
+ve.ce.SmallAnnotation = function VeCeSmallAnnotation() {
// Parent constructor
- ve.ce.TextStyleAnnotation.call( this, model, parentNode, config );
+ ve.ce.SmallAnnotation.super.apply( this, arguments );
// DOM changes
this.$element.addClass( 've-ce-smallAnnotation' );
diff --git a/src/ce/annotations/ve.ce.SpanAnnotation.js
b/src/ce/annotations/ve.ce.SpanAnnotation.js
index eb795c6..32e6ce5 100644
--- a/src/ce/annotations/ve.ce.SpanAnnotation.js
+++ b/src/ce/annotations/ve.ce.SpanAnnotation.js
@@ -14,9 +14,9 @@
* @param {ve.ce.ContentBranchNode} [parentNode] Node rendering this annotation
* @param {Object} [config] Configuration options
*/
-ve.ce.SpanAnnotation = function VeCeSpanAnnotation( model, parentNode, config
) {
+ve.ce.SpanAnnotation = function VeCeSpanAnnotation() {
// Parent constructor
- ve.ce.TextStyleAnnotation.call( this, model, parentNode, config );
+ ve.ce.SpanAnnotation.super.apply( this, arguments );
// DOM changes
this.$element.addClass( 've-ce-spanAnnotation' );
diff --git a/src/ce/annotations/ve.ce.StrikethroughAnnotation.js
b/src/ce/annotations/ve.ce.StrikethroughAnnotation.js
index d9e9c60..3f764ce 100644
--- a/src/ce/annotations/ve.ce.StrikethroughAnnotation.js
+++ b/src/ce/annotations/ve.ce.StrikethroughAnnotation.js
@@ -14,9 +14,9 @@
* @param {ve.ce.ContentBranchNode} [parentNode] Node rendering this annotation
* @param {Object} [config] Configuration options
*/
-ve.ce.StrikethroughAnnotation = function VeCeStrikethroughAnnotation( model,
parentNode, config ) {
+ve.ce.StrikethroughAnnotation = function VeCeStrikethroughAnnotation() {
// Parent constructor
- ve.ce.TextStyleAnnotation.call( this, model, parentNode, config );
+ ve.ce.StrikethroughAnnotation.super.apply( this, arguments );
// DOM changes
this.$element.addClass( 've-ce-strikethroughAnnotation' );
diff --git a/src/ce/annotations/ve.ce.SubscriptAnnotation.js
b/src/ce/annotations/ve.ce.SubscriptAnnotation.js
index 07436c5..53ae61c 100644
--- a/src/ce/annotations/ve.ce.SubscriptAnnotation.js
+++ b/src/ce/annotations/ve.ce.SubscriptAnnotation.js
@@ -14,9 +14,9 @@
* @param {ve.ce.ContentBranchNode} [parentNode] Node rendering this annotation
* @param {Object} [config] Configuration options
*/
-ve.ce.SubscriptAnnotation = function VeCeSubscriptAnnotation( model,
parentNode, config ) {
+ve.ce.SubscriptAnnotation = function VeCeSubscriptAnnotation() {
// Parent constructor
- ve.ce.TextStyleAnnotation.call( this, model, parentNode, config );
+ ve.ce.SubscriptAnnotation.super.apply( this, arguments );
// DOM changes
this.$element.addClass( 've-ce-subscriptAnnotation' );
diff --git a/src/ce/annotations/ve.ce.SuperscriptAnnotation.js
b/src/ce/annotations/ve.ce.SuperscriptAnnotation.js
index 27d3366..3269a3b 100644
--- a/src/ce/annotations/ve.ce.SuperscriptAnnotation.js
+++ b/src/ce/annotations/ve.ce.SuperscriptAnnotation.js
@@ -14,9 +14,9 @@
* @param {ve.ce.ContentBranchNode} [parentNode] Node rendering this annotation
* @param {Object} [config] Configuration options
*/
-ve.ce.SuperscriptAnnotation = function VeCeSuperscriptAnnotation( model,
parentNode, config ) {
+ve.ce.SuperscriptAnnotation = function VeCeSuperscriptAnnotation() {
// Parent constructor
- ve.ce.TextStyleAnnotation.call( this, model, parentNode, config );
+ ve.ce.SuperscriptAnnotation.super.apply( this, arguments );
// DOM changes
this.$element.addClass( 've-ce-superscriptAnnotation' );
diff --git a/src/ce/annotations/ve.ce.TextStyleAnnotation.js
b/src/ce/annotations/ve.ce.TextStyleAnnotation.js
index 459c3d6..c8c1900 100644
--- a/src/ce/annotations/ve.ce.TextStyleAnnotation.js
+++ b/src/ce/annotations/ve.ce.TextStyleAnnotation.js
@@ -15,9 +15,9 @@
* @param {ve.ce.ContentBranchNode} [parentNode] Node rendering this annotation
* @param {Object} [config] Configuration options
*/
-ve.ce.TextStyleAnnotation = function VeCeTextStyleAnnotation( model,
parentNode, config ) {
+ve.ce.TextStyleAnnotation = function VeCeTextStyleAnnotation() {
// Parent constructor
- ve.ce.Annotation.call( this, model, parentNode, config );
+ ve.ce.TextStyleAnnotation.super.apply( this, arguments );
// DOM changes
this.$element.addClass( 've-ce-textStyleAnnotation' );
diff --git a/src/ce/annotations/ve.ce.UnderlineAnnotation.js
b/src/ce/annotations/ve.ce.UnderlineAnnotation.js
index 7f9b387..5d0d2b4 100644
--- a/src/ce/annotations/ve.ce.UnderlineAnnotation.js
+++ b/src/ce/annotations/ve.ce.UnderlineAnnotation.js
@@ -14,9 +14,9 @@
* @param {ve.ce.ContentBranchNode} [parentNode] Node rendering this annotation
* @param {Object} [config] Configuration options
*/
-ve.ce.UnderlineAnnotation = function VeCeUnderlineAnnotation( model,
parentNode, config ) {
+ve.ce.UnderlineAnnotation = function VeCeUnderlineAnnotation() {
// Parent constructor
- ve.ce.TextStyleAnnotation.call( this, model, parentNode, config );
+ ve.ce.UnderlineAnnotation.super.apply( this, arguments );
// DOM changes
this.$element.addClass( 've-ce-underlineAnnotation' );
diff --git a/src/ce/annotations/ve.ce.UserInputAnnotation.js
b/src/ce/annotations/ve.ce.UserInputAnnotation.js
index 1eec3f9..62ff604 100644
--- a/src/ce/annotations/ve.ce.UserInputAnnotation.js
+++ b/src/ce/annotations/ve.ce.UserInputAnnotation.js
@@ -14,9 +14,9 @@
* @param {ve.ce.ContentBranchNode} [parentNode] Node rendering this annotation
* @param {Object} [config] Configuration options
*/
-ve.ce.UserInputAnnotation = function VeCeUserInputAnnotation( model,
parentNode, config ) {
+ve.ce.UserInputAnnotation = function VeCeUserInputAnnotation() {
// Parent constructor
- ve.ce.TextStyleAnnotation.call( this, model, parentNode, config );
+ ve.ce.UserInputAnnotation.super.apply( this, arguments );
// DOM changes
this.$element.addClass( 've-ce-userInputAnnotation' );
diff --git a/src/ce/annotations/ve.ce.VariableAnnotation.js
b/src/ce/annotations/ve.ce.VariableAnnotation.js
index 7846542..cf468f8 100644
--- a/src/ce/annotations/ve.ce.VariableAnnotation.js
+++ b/src/ce/annotations/ve.ce.VariableAnnotation.js
@@ -14,9 +14,9 @@
* @param {ve.ce.ContentBranchNode} [parentNode] Node rendering this annotation
* @param {Object} [config] Configuration options
*/
-ve.ce.VariableAnnotation = function VeCeVariableAnnotation( model, parentNode,
config ) {
+ve.ce.VariableAnnotation = function VeCeVariableAnnotation() {
// Parent constructor
- ve.ce.TextStyleAnnotation.call( this, model, parentNode, config );
+ ve.ce.VariableAnnotation.super.apply( this, arguments );
// DOM changes
this.$element.addClass( 've-ce-variableAnnotation' );
diff --git a/src/ce/nodes/ve.ce.AlienNode.js b/src/ce/nodes/ve.ce.AlienNode.js
index 3fb8bb8..7beeb35 100644
--- a/src/ce/nodes/ve.ce.AlienNode.js
+++ b/src/ce/nodes/ve.ce.AlienNode.js
@@ -19,7 +19,7 @@
*/
ve.ce.AlienNode = function VeCeAlienNode() {
// Parent constructor
- ve.ce.LeafNode.apply( this, arguments );
+ ve.ce.AlienNode.super.apply( this, arguments );
// Mixin constructors
ve.ce.FocusableNode.call( this );
@@ -76,7 +76,7 @@
*/
ve.ce.AlienBlockNode = function VeCeAlienBlockNode() {
// Parent constructor
- ve.ce.AlienNode.apply( this, arguments );
+ ve.ce.AlienBlockNode.super.apply( this, arguments );
};
/* Inheritance */
@@ -99,7 +99,7 @@
*/
ve.ce.AlienInlineNode = function VeCeAlienInlineNode() {
// Parent constructor
- ve.ce.AlienNode.apply( this, arguments );
+ ve.ce.AlienInlineNode.super.apply( this, arguments );
};
/* Inheritance */
diff --git a/src/ce/nodes/ve.ce.BlockImageCaptionNode.js
b/src/ce/nodes/ve.ce.BlockImageCaptionNode.js
index 6301260..eca0cc4 100644
--- a/src/ce/nodes/ve.ce.BlockImageCaptionNode.js
+++ b/src/ce/nodes/ve.ce.BlockImageCaptionNode.js
@@ -13,9 +13,9 @@
* @param {ve.dm.BlockImageCaptionNode} model Model to observe
* @param {Object} [config] Configuration options
*/
-ve.ce.BlockImageCaptionNode = function VeCeBlockImageCaptionNode( model,
config ) {
+ve.ce.BlockImageCaptionNode = function VeCeBlockImageCaptionNode() {
// Parent constructor
- ve.ce.BranchNode.call( this, model, config );
+ ve.ce.BlockImageCaptionNode.super.apply( this, arguments );
};
/* Inheritance */
diff --git a/src/ce/nodes/ve.ce.BlockImageNode.js
b/src/ce/nodes/ve.ce.BlockImageNode.js
index a5d018d..9d4eaab 100644
--- a/src/ce/nodes/ve.ce.BlockImageNode.js
+++ b/src/ce/nodes/ve.ce.BlockImageNode.js
@@ -21,7 +21,7 @@
}, config );
// Parent constructor
- ve.ce.BranchNode.call( this, model, config );
+ ve.ce.BlockImageNode.super.call( this, model, config );
// Build DOM
this.$image = this.$( '<img>' )
diff --git a/src/ce/nodes/ve.ce.BreakNode.js b/src/ce/nodes/ve.ce.BreakNode.js
index 4b090a3..35a2b7a 100644
--- a/src/ce/nodes/ve.ce.BreakNode.js
+++ b/src/ce/nodes/ve.ce.BreakNode.js
@@ -13,9 +13,9 @@
* @param {ve.dm.BreakNode} model Model to observe
* @param {Object} [config] Configuration options
*/
-ve.ce.BreakNode = function VeCeBreakNode( model, config ) {
+ve.ce.BreakNode = function VeCeBreakNode() {
// Parent constructor
- ve.ce.LeafNode.call( this, model, config );
+ ve.ce.BreakNode.super.apply( this, arguments );
// DOM changes
this.$element.addClass( 've-ce-breakNode' );
diff --git a/src/ce/nodes/ve.ce.CenterNode.js b/src/ce/nodes/ve.ce.CenterNode.js
index 197b52d..b92b6ae 100644
--- a/src/ce/nodes/ve.ce.CenterNode.js
+++ b/src/ce/nodes/ve.ce.CenterNode.js
@@ -13,9 +13,9 @@
* @param {ve.dm.CenterNode} model Model to observe
* @param {Object} [config] Configuration options
*/
-ve.ce.CenterNode = function VeCeCenterNode( model, config ) {
+ve.ce.CenterNode = function VeCeCenterNode() {
// Parent constructor
- ve.ce.BranchNode.call( this, model, config );
+ ve.ce.CenterNode.super.apply( this, arguments );
};
/* Inheritance */
diff --git a/src/ce/nodes/ve.ce.CommentNode.js
b/src/ce/nodes/ve.ce.CommentNode.js
index 2ccbd43..178aaf9 100644
--- a/src/ce/nodes/ve.ce.CommentNode.js
+++ b/src/ce/nodes/ve.ce.CommentNode.js
@@ -18,19 +18,19 @@
*/
ve.ce.CommentNode = function VeCeCommentNode( model, config ) {
// Parent constructor
- ve.ce.LeafNode.call( this, model, config );
-
- // DOM changes
- this.$element
- .addClass( 've-ce-commentNode' )
- // Add em space for selection highlighting
- .text( '\u2003' );
+ ve.ce.CommentNode.super.call( this, model, config );
// Mixin constructors
ve.ce.FocusableNode.call( this, this.$element, config );
OO.ui.IndicatorElement.call( this, $.extend( {}, config, {
$indicator: this.$element, indicator: 'alert'
} ) );
+
+ // DOM changes
+ this.$element
+ .addClass( 've-ce-commentNode' )
+ // Add em space for selection highlighting
+ .text( '\u2003' );
};
/* Inheritance */
diff --git a/src/ce/nodes/ve.ce.DefinitionListItemNode.js
b/src/ce/nodes/ve.ce.DefinitionListItemNode.js
index 049f479..71c416b 100644
--- a/src/ce/nodes/ve.ce.DefinitionListItemNode.js
+++ b/src/ce/nodes/ve.ce.DefinitionListItemNode.js
@@ -13,9 +13,9 @@
* @param {ve.dm.DefinitionListItemNode} model Model to observe
* @param {Object} [config] Configuration options
*/
-ve.ce.DefinitionListItemNode = function VeCeDefinitionListItemNode( model,
config ) {
+ve.ce.DefinitionListItemNode = function VeCeDefinitionListItemNode() {
// Parent constructor
- ve.ce.BranchNode.call( this, model, config );
+ ve.ce.DefinitionListItemNode.super.apply( this, arguments );
// Events
this.model.connect( this, { update: 'onUpdate' } );
diff --git a/src/ce/nodes/ve.ce.DefinitionListNode.js
b/src/ce/nodes/ve.ce.DefinitionListNode.js
index 164773f..8b759e6 100644
--- a/src/ce/nodes/ve.ce.DefinitionListNode.js
+++ b/src/ce/nodes/ve.ce.DefinitionListNode.js
@@ -13,9 +13,9 @@
* @param {ve.dm.DefinitionListNode} model Model to observe
* @param {Object} [config] Configuration options
*/
-ve.ce.DefinitionListNode = function VeCeDefinitionListNode( model, config ) {
+ve.ce.DefinitionListNode = function VeCeDefinitionListNode() {
// Parent constructor
- ve.ce.BranchNode.call( this, model, config );
+ ve.ce.DefinitionListNode.super.apply( this, arguments );
};
/* Inheritance */
diff --git a/src/ce/nodes/ve.ce.DivNode.js b/src/ce/nodes/ve.ce.DivNode.js
index 652fb32..5cd283b 100644
--- a/src/ce/nodes/ve.ce.DivNode.js
+++ b/src/ce/nodes/ve.ce.DivNode.js
@@ -13,9 +13,9 @@
* @param {ve.dm.DivNode} model Model to observe
* @param {Object} [config] Configuration options
*/
-ve.ce.DivNode = function VeCeDivNode( model, config ) {
+ve.ce.DivNode = function VeCeDivNode() {
// Parent constructor
- ve.ce.BranchNode.call( this, model, config );
+ ve.ce.DivNode.super.apply( this, arguments );
};
/* Inheritance */
diff --git a/src/ce/nodes/ve.ce.DocumentNode.js
b/src/ce/nodes/ve.ce.DocumentNode.js
index f059543..402efb1 100644
--- a/src/ce/nodes/ve.ce.DocumentNode.js
+++ b/src/ce/nodes/ve.ce.DocumentNode.js
@@ -16,7 +16,7 @@
*/
ve.ce.DocumentNode = function VeCeDocumentNode( model, surface, config ) {
// Parent constructor
- ve.ce.BranchNode.call( this, model, config );
+ ve.ce.DocumentNode.super.call( this, model, config );
// Properties
this.surface = surface;
diff --git a/src/ce/nodes/ve.ce.HeadingNode.js
b/src/ce/nodes/ve.ce.HeadingNode.js
index 1b8f966..b47a846 100644
--- a/src/ce/nodes/ve.ce.HeadingNode.js
+++ b/src/ce/nodes/ve.ce.HeadingNode.js
@@ -13,9 +13,9 @@
* @param {ve.dm.HeadingNode} model Model to observe
* @param {Object} [config] Configuration options
*/
-ve.ce.HeadingNode = function VeCeHeadingNode( model, config ) {
+ve.ce.HeadingNode = function VeCeHeadingNode() {
// Parent constructor
- ve.ce.ContentBranchNode.call( this, model, config );
+ ve.ce.HeadingNode.super.apply( this, arguments );
// Events
this.model.connect( this, { update: 'onUpdate' } );
diff --git a/src/ce/nodes/ve.ce.InlineImageNode.js
b/src/ce/nodes/ve.ce.InlineImageNode.js
index 6ff59a6..fb4c7b0 100644
--- a/src/ce/nodes/ve.ce.InlineImageNode.js
+++ b/src/ce/nodes/ve.ce.InlineImageNode.js
@@ -22,7 +22,7 @@
}, config );
// Parent constructor
- ve.ce.LeafNode.call( this, model, config );
+ ve.ce.InlineImageNode.super.call( this, model, config );
// Mixin constructors
ve.ce.ImageNode.call( this, this.$element, null, config );
diff --git a/src/ce/nodes/ve.ce.InternalItemNode.js
b/src/ce/nodes/ve.ce.InternalItemNode.js
index 0f58bea..8e52391 100644
--- a/src/ce/nodes/ve.ce.InternalItemNode.js
+++ b/src/ce/nodes/ve.ce.InternalItemNode.js
@@ -13,9 +13,9 @@
* @param {ve.dm.InternalItemNode} model Model to observe
* @param {Object} [config] Configuration options
*/
-ve.ce.InternalItemNode = function VeCeInternalItemNode( model, config ) {
+ve.ce.InternalItemNode = function VeCeInternalItemNode() {
// Parent constructor
- ve.ce.BranchNode.call( this, model, config );
+ ve.ce.InternalItemNode.super.apply( this, arguments );
this.$element.addClass( 've-ce-internalItemNode' );
};
diff --git a/src/ce/nodes/ve.ce.InternalListNode.js
b/src/ce/nodes/ve.ce.InternalListNode.js
index de8e37e..05f75a5 100644
--- a/src/ce/nodes/ve.ce.InternalListNode.js
+++ b/src/ce/nodes/ve.ce.InternalListNode.js
@@ -13,9 +13,9 @@
* @param {ve.dm.InternalListNode} model Model to observe
* @param {Object} [config] Configuration options
*/
-ve.ce.InternalListNode = function VeCeInternalListNode( model, config ) {
+ve.ce.InternalListNode = function VeCeInternalListNode() {
// Parent constructor
- ve.ce.BranchNode.call( this, model, config );
+ ve.ce.InternalListNode.super.apply( this, arguments );
// An internal list has no rendering
this.$element = this.$( [] );
diff --git a/src/ce/nodes/ve.ce.ListItemNode.js
b/src/ce/nodes/ve.ce.ListItemNode.js
index bf414bd..23d2deb 100644
--- a/src/ce/nodes/ve.ce.ListItemNode.js
+++ b/src/ce/nodes/ve.ce.ListItemNode.js
@@ -13,9 +13,9 @@
* @param {ve.dm.ListItemNode} model Model to observe
* @param {Object} [config] Configuration options
*/
-ve.ce.ListItemNode = function VeCeListItemNode( model, config ) {
+ve.ce.ListItemNode = function VeCeListItemNode() {
// Parent constructor
- ve.ce.BranchNode.call( this, model, config );
+ ve.ce.ListItemNode.super.apply( this, arguments );
};
/* Inheritance */
diff --git a/src/ce/nodes/ve.ce.ListNode.js b/src/ce/nodes/ve.ce.ListNode.js
index 30bf855..43d36c9 100644
--- a/src/ce/nodes/ve.ce.ListNode.js
+++ b/src/ce/nodes/ve.ce.ListNode.js
@@ -13,9 +13,9 @@
* @param {ve.dm.ListNode} model Model to observe
* @param {Object} [config] Configuration options
*/
-ve.ce.ListNode = function VeCeListNode( model, config ) {
+ve.ce.ListNode = function VeCeListNode() {
// Parent constructor
- ve.ce.BranchNode.call( this, model, config );
+ ve.ce.ListNode.super.apply( this, arguments );
// Events
this.model.connect( this, { update: 'onUpdate' } );
diff --git a/src/ce/nodes/ve.ce.ParagraphNode.js
b/src/ce/nodes/ve.ce.ParagraphNode.js
index aff2fa3..1dd7030 100644
--- a/src/ce/nodes/ve.ce.ParagraphNode.js
+++ b/src/ce/nodes/ve.ce.ParagraphNode.js
@@ -13,9 +13,9 @@
* @param {ve.dm.ParagraphNode} model Model to observe
* @param {Object} [config] Configuration options
*/
-ve.ce.ParagraphNode = function VeCeParagraphNode( model, config ) {
+ve.ce.ParagraphNode = function VeCeParagraphNode() {
// Parent constructor
- ve.ce.ContentBranchNode.call( this, model, config );
+ ve.ce.ParagraphNode.super.apply( this, arguments );
// DOM changes
this.$element.addClass( 've-ce-paragraphNode' );
diff --git a/src/ce/nodes/ve.ce.PreformattedNode.js
b/src/ce/nodes/ve.ce.PreformattedNode.js
index 12c23bd..f5fb39f 100644
--- a/src/ce/nodes/ve.ce.PreformattedNode.js
+++ b/src/ce/nodes/ve.ce.PreformattedNode.js
@@ -13,9 +13,9 @@
* @param {ve.dm.PreformattedNode} model Model to observe
* @param {Object} [config] Configuration options
*/
-ve.ce.PreformattedNode = function VeCePreformattedNode( model, config ) {
+ve.ce.PreformattedNode = function VeCePreformattedNode() {
// Parent constructor
- ve.ce.ContentBranchNode.call( this, model, config );
+ ve.ce.PreformattedNode.super.apply( this, arguments );
};
/* Inheritance */
diff --git a/src/ce/nodes/ve.ce.TableCaptionNode.js
b/src/ce/nodes/ve.ce.TableCaptionNode.js
index 5b65742..0b3b3bf 100644
--- a/src/ce/nodes/ve.ce.TableCaptionNode.js
+++ b/src/ce/nodes/ve.ce.TableCaptionNode.js
@@ -13,9 +13,9 @@
* @param {ve.dm.TableCaptionNode} model Model to observe
* @param {Object} [config] Configuration options
*/
-ve.ce.TableCaptionNode = function VeCeTableCaptionNode( model, config ) {
+ve.ce.TableCaptionNode = function VeCeTableCaptionNode() {
// Parent constructor
- ve.ce.BranchNode.call( this, model, config );
+ ve.ce.TableCaptionNode.super.apply( this, arguments );
};
/* Inheritance */
diff --git a/src/ce/nodes/ve.ce.TableCellNode.js
b/src/ce/nodes/ve.ce.TableCellNode.js
index 1b59e6d..62dcaa0 100644
--- a/src/ce/nodes/ve.ce.TableCellNode.js
+++ b/src/ce/nodes/ve.ce.TableCellNode.js
@@ -13,9 +13,9 @@
* @param {ve.dm.TableCellNode} model Model to observe
* @param {Object} [config] Configuration options
*/
-ve.ce.TableCellNode = function VeCeTableCellNode( model, config ) {
+ve.ce.TableCellNode = function VeCeTableCellNode() {
// Parent constructor
- ve.ce.BranchNode.call( this, model, config );
+ ve.ce.TableCellNode.super.apply( this, arguments );
// Events
this.model.connect( this, {
diff --git a/src/ce/nodes/ve.ce.TableNode.js b/src/ce/nodes/ve.ce.TableNode.js
index 9a6189e..ba38b90 100644
--- a/src/ce/nodes/ve.ce.TableNode.js
+++ b/src/ce/nodes/ve.ce.TableNode.js
@@ -13,9 +13,9 @@
* @param {ve.dm.TableNode} model Model to observe
* @param {Object} [config] Configuration options
*/
-ve.ce.TableNode = function VeCeTableNode( model, config ) {
+ve.ce.TableNode = function VeCeTableNode() {
// Parent constructor
- ve.ce.BranchNode.call( this, model, config );
+ ve.ce.TableNode.super.apply( this, arguments );
this.surface = null;
this.active = false;
diff --git a/src/ce/nodes/ve.ce.TableRowNode.js
b/src/ce/nodes/ve.ce.TableRowNode.js
index 67e8b85..92092cb 100644
--- a/src/ce/nodes/ve.ce.TableRowNode.js
+++ b/src/ce/nodes/ve.ce.TableRowNode.js
@@ -13,9 +13,9 @@
* @param {ve.dm.TableRowNode} model Model to observe
* @param {Object} [config] Configuration options
*/
-ve.ce.TableRowNode = function VeCeTableRowNode( model, config ) {
+ve.ce.TableRowNode = function VeCeTableRowNode() {
// Parent constructor
- ve.ce.BranchNode.call( this, model, config );
+ ve.ce.TableRowNode.super.apply( this, arguments );
};
/* Inheritance */
diff --git a/src/ce/nodes/ve.ce.TableSectionNode.js
b/src/ce/nodes/ve.ce.TableSectionNode.js
index 59ce151..d3ba0b0 100644
--- a/src/ce/nodes/ve.ce.TableSectionNode.js
+++ b/src/ce/nodes/ve.ce.TableSectionNode.js
@@ -13,9 +13,9 @@
* @param {ve.dm.TableSectionNode} model Model to observe
* @param {Object} [config] Configuration options
*/
-ve.ce.TableSectionNode = function VeCeTableSectionNode( model, config ) {
+ve.ce.TableSectionNode = function VeCeTableSectionNode() {
// Parent constructor
- ve.ce.BranchNode.call( this, model, config );
+ ve.ce.TableSectionNode.super.apply( this, arguments );
// Events
this.model.connect( this, { update: 'onUpdate' } );
diff --git a/src/ce/nodes/ve.ce.TextNode.js b/src/ce/nodes/ve.ce.TextNode.js
index 8ccd162..d8efe69 100644
--- a/src/ce/nodes/ve.ce.TextNode.js
+++ b/src/ce/nodes/ve.ce.TextNode.js
@@ -13,9 +13,9 @@
* @param {ve.dm.TextNode} model Model to observe
* @param {Object} [config] Configuration options
*/
-ve.ce.TextNode = function VeCeTextNode( model, config ) {
+ve.ce.TextNode = function VeCeTextNode() {
// Parent constructor
- ve.ce.LeafNode.call( this, model, config );
+ ve.ce.TextNode.super.apply( this, arguments );
};
/* Inheritance */
diff --git a/src/dm/annotations/ve.dm.AbbreviationAnnotation.js
b/src/dm/annotations/ve.dm.AbbreviationAnnotation.js
index 4c21a80..7430baf 100644
--- a/src/dm/annotations/ve.dm.AbbreviationAnnotation.js
+++ b/src/dm/annotations/ve.dm.AbbreviationAnnotation.js
@@ -14,9 +14,9 @@
* @constructor
* @param {Object} element
*/
-ve.dm.AbbreviationAnnotation = function VeDmAbbreviationAnnotation( element ) {
+ve.dm.AbbreviationAnnotation = function VeDmAbbreviationAnnotation() {
// Parent constructor
- ve.dm.TextStyleAnnotation.call( this, element );
+ ve.dm.AbbreviationAnnotation.super.apply( this, arguments );
};
/* Inheritance */
diff --git a/src/dm/annotations/ve.dm.BigAnnotation.js
b/src/dm/annotations/ve.dm.BigAnnotation.js
index abad905..e156189 100644
--- a/src/dm/annotations/ve.dm.BigAnnotation.js
+++ b/src/dm/annotations/ve.dm.BigAnnotation.js
@@ -14,9 +14,9 @@
* @constructor
* @param {Object} element
*/
-ve.dm.BigAnnotation = function VeDmBigAnnotation( element ) {
+ve.dm.BigAnnotation = function VeDmBigAnnotation() {
// Parent constructor
- ve.dm.TextStyleAnnotation.call( this, element );
+ ve.dm.BigAnnotation.super.apply( this, arguments );
};
/* Inheritance */
diff --git a/src/dm/annotations/ve.dm.BoldAnnotation.js
b/src/dm/annotations/ve.dm.BoldAnnotation.js
index 9d97994..4d43ce2 100644
--- a/src/dm/annotations/ve.dm.BoldAnnotation.js
+++ b/src/dm/annotations/ve.dm.BoldAnnotation.js
@@ -14,9 +14,9 @@
* @constructor
* @param {Object} element
*/
-ve.dm.BoldAnnotation = function VeDmBoldAnnotation( element ) {
+ve.dm.BoldAnnotation = function VeDmBoldAnnotation() {
// Parent constructor
- ve.dm.TextStyleAnnotation.call( this, element );
+ ve.dm.BoldAnnotation.super.apply( this, arguments );
};
/* Inheritance */
diff --git a/src/dm/annotations/ve.dm.CodeAnnotation.js
b/src/dm/annotations/ve.dm.CodeAnnotation.js
index 23cbbd0..e5821a6 100644
--- a/src/dm/annotations/ve.dm.CodeAnnotation.js
+++ b/src/dm/annotations/ve.dm.CodeAnnotation.js
@@ -14,9 +14,9 @@
* @constructor
* @param {Object} element
*/
-ve.dm.CodeAnnotation = function VeDmCodeAnnotation( element ) {
+ve.dm.CodeAnnotation = function VeDmCodeAnnotation() {
// Parent constructor
- ve.dm.TextStyleAnnotation.call( this, element );
+ ve.dm.CodeAnnotation.super.apply( this, arguments );
};
/* Inheritance */
diff --git a/src/dm/annotations/ve.dm.CodeSampleAnnotation.js
b/src/dm/annotations/ve.dm.CodeSampleAnnotation.js
index 5e21a10..04db991 100644
--- a/src/dm/annotations/ve.dm.CodeSampleAnnotation.js
+++ b/src/dm/annotations/ve.dm.CodeSampleAnnotation.js
@@ -14,9 +14,9 @@
* @constructor
* @param {Object} element
*/
-ve.dm.CodeSampleAnnotation = function VeDmCodeSampleAnnotation( element ) {
+ve.dm.CodeSampleAnnotation = function VeDmCodeSampleAnnotation() {
// Parent constructor
- ve.dm.TextStyleAnnotation.call( this, element );
+ ve.dm.CodeSampleAnnotation.super.apply( this, arguments );
};
/* Inheritance */
diff --git a/src/dm/annotations/ve.dm.DatetimeAnnotation.js
b/src/dm/annotations/ve.dm.DatetimeAnnotation.js
index 4cf559d..c26f3fc 100644
--- a/src/dm/annotations/ve.dm.DatetimeAnnotation.js
+++ b/src/dm/annotations/ve.dm.DatetimeAnnotation.js
@@ -14,9 +14,9 @@
* @constructor
* @param {Object} element
*/
-ve.dm.DatetimeAnnotation = function VeDmDatetimeAnnotation( element ) {
+ve.dm.DatetimeAnnotation = function VeDmDatetimeAnnotation() {
// Parent constructor
- ve.dm.TextStyleAnnotation.call( this, element );
+ ve.dm.DatetimeAnnotation.super.apply( this, arguments );
};
/* Inheritance */
diff --git a/src/dm/annotations/ve.dm.DefinitionAnnotation.js
b/src/dm/annotations/ve.dm.DefinitionAnnotation.js
index d919445..9a45567 100644
--- a/src/dm/annotations/ve.dm.DefinitionAnnotation.js
+++ b/src/dm/annotations/ve.dm.DefinitionAnnotation.js
@@ -14,9 +14,9 @@
* @constructor
* @param {Object} element
*/
-ve.dm.DefinitionAnnotation = function VeDmDefinitionAnnotation( element ) {
+ve.dm.DefinitionAnnotation = function VeDmDefinitionAnnotation() {
// Parent constructor
- ve.dm.TextStyleAnnotation.call( this, element );
+ ve.dm.DefinitionAnnotation.super.apply( this, arguments );
};
/* Inheritance */
diff --git a/src/dm/annotations/ve.dm.HighlightAnnotation.js
b/src/dm/annotations/ve.dm.HighlightAnnotation.js
index 08a61bc..f431ddb 100644
--- a/src/dm/annotations/ve.dm.HighlightAnnotation.js
+++ b/src/dm/annotations/ve.dm.HighlightAnnotation.js
@@ -14,9 +14,9 @@
* @constructor
* @param {Object} element
*/
-ve.dm.HighlightAnnotation = function VeDmHighlightAnnotation( element ) {
+ve.dm.HighlightAnnotation = function VeDmHighlightAnnotation() {
// Parent constructor
- ve.dm.TextStyleAnnotation.call( this, element );
+ ve.dm.HighlightAnnotation.super.apply( this, arguments );
};
/* Inheritance */
diff --git a/src/dm/annotations/ve.dm.ItalicAnnotation.js
b/src/dm/annotations/ve.dm.ItalicAnnotation.js
index fc8d37f..87f4221 100644
--- a/src/dm/annotations/ve.dm.ItalicAnnotation.js
+++ b/src/dm/annotations/ve.dm.ItalicAnnotation.js
@@ -14,9 +14,9 @@
* @constructor
* @param {Object} element
*/
-ve.dm.ItalicAnnotation = function VeDmItalicAnnotation( element ) {
+ve.dm.ItalicAnnotation = function VeDmItalicAnnotation() {
// Parent constructor
- ve.dm.TextStyleAnnotation.call( this, element );
+ ve.dm.ItalicAnnotation.super.apply( this, arguments );
};
/* Inheritance */
diff --git a/src/dm/annotations/ve.dm.LanguageAnnotation.js
b/src/dm/annotations/ve.dm.LanguageAnnotation.js
index 3b907f5..d6d8ad3 100644
--- a/src/dm/annotations/ve.dm.LanguageAnnotation.js
+++ b/src/dm/annotations/ve.dm.LanguageAnnotation.js
@@ -14,9 +14,9 @@
* @constructor
* @param {Object} element
*/
-ve.dm.LanguageAnnotation = function VeDmLanguageAnnotation( element ) {
+ve.dm.LanguageAnnotation = function VeDmLanguageAnnotation() {
// Parent constructor
- ve.dm.Annotation.call( this, element );
+ ve.dm.LanguageAnnotation.super.apply( this, arguments );
};
/* Inheritance */
diff --git a/src/dm/annotations/ve.dm.LinkAnnotation.js
b/src/dm/annotations/ve.dm.LinkAnnotation.js
index 5deec27..d64440f 100644
--- a/src/dm/annotations/ve.dm.LinkAnnotation.js
+++ b/src/dm/annotations/ve.dm.LinkAnnotation.js
@@ -14,9 +14,9 @@
* @constructor
* @param {Object} element
*/
-ve.dm.LinkAnnotation = function VeDmLinkAnnotation( element ) {
+ve.dm.LinkAnnotation = function VeDmLinkAnnotation() {
// Parent constructor
- ve.dm.Annotation.call( this, element );
+ ve.dm.LinkAnnotation.super.apply( this, arguments );
};
/* Inheritance */
diff --git a/src/dm/annotations/ve.dm.QuotationAnnotation.js
b/src/dm/annotations/ve.dm.QuotationAnnotation.js
index 1694834..9952d53 100644
--- a/src/dm/annotations/ve.dm.QuotationAnnotation.js
+++ b/src/dm/annotations/ve.dm.QuotationAnnotation.js
@@ -14,9 +14,9 @@
* @constructor
* @param {Object} element
*/
-ve.dm.QuotationAnnotation = function VeDmQuotationAnnotation( element ) {
+ve.dm.QuotationAnnotation = function VeDmQuotationAnnotation() {
// Parent constructor
- ve.dm.TextStyleAnnotation.call( this, element );
+ ve.dm.QuotationAnnotation.super.apply( this, arguments );
};
/* Inheritance */
diff --git a/src/dm/annotations/ve.dm.SmallAnnotation.js
b/src/dm/annotations/ve.dm.SmallAnnotation.js
index 1171aee..f13c49f 100644
--- a/src/dm/annotations/ve.dm.SmallAnnotation.js
+++ b/src/dm/annotations/ve.dm.SmallAnnotation.js
@@ -14,9 +14,9 @@
* @constructor
* @param {Object} element
*/
-ve.dm.SmallAnnotation = function VeDmSmallAnnotation( element ) {
+ve.dm.SmallAnnotation = function VeDmSmallAnnotation() {
// Parent constructor
- ve.dm.TextStyleAnnotation.call( this, element );
+ ve.dm.SmallAnnotation.super.apply( this, arguments );
};
/* Inheritance */
diff --git a/src/dm/annotations/ve.dm.SpanAnnotation.js
b/src/dm/annotations/ve.dm.SpanAnnotation.js
index 2ca92a9..772de63 100644
--- a/src/dm/annotations/ve.dm.SpanAnnotation.js
+++ b/src/dm/annotations/ve.dm.SpanAnnotation.js
@@ -14,9 +14,9 @@
* @constructor
* @param {Object} element
*/
-ve.dm.SpanAnnotation = function VeDmSpanAnnotation( element ) {
+ve.dm.SpanAnnotation = function VeDmSpanAnnotation() {
// Parent constructor
- ve.dm.TextStyleAnnotation.call( this, element );
+ ve.dm.SpanAnnotation.super.apply( this, arguments );
};
/* Inheritance */
diff --git a/src/dm/annotations/ve.dm.StrikethroughAnnotation.js
b/src/dm/annotations/ve.dm.StrikethroughAnnotation.js
index b1b445e..ca86df9 100644
--- a/src/dm/annotations/ve.dm.StrikethroughAnnotation.js
+++ b/src/dm/annotations/ve.dm.StrikethroughAnnotation.js
@@ -14,9 +14,9 @@
* @constructor
* @param {Object} element
*/
-ve.dm.StrikethroughAnnotation = function VeDmStrikethroughAnnotation( element
) {
+ve.dm.StrikethroughAnnotation = function VeDmStrikethroughAnnotation() {
// Parent constructor
- ve.dm.TextStyleAnnotation.call( this, element );
+ ve.dm.StrikethroughAnnotation.super.apply( this, arguments );
};
/* Inheritance */
diff --git a/src/dm/annotations/ve.dm.SubscriptAnnotation.js
b/src/dm/annotations/ve.dm.SubscriptAnnotation.js
index 5a393c8..dd2386a 100644
--- a/src/dm/annotations/ve.dm.SubscriptAnnotation.js
+++ b/src/dm/annotations/ve.dm.SubscriptAnnotation.js
@@ -14,9 +14,9 @@
* @constructor
* @param {Object} element
*/
-ve.dm.SubscriptAnnotation = function VeDmSubscriptAnnotation( element ) {
+ve.dm.SubscriptAnnotation = function VeDmSubscriptAnnotation() {
// Parent constructor
- ve.dm.TextStyleAnnotation.call( this, element );
+ ve.dm.SubscriptAnnotation.super.apply( this, arguments );
};
/* Inheritance */
diff --git a/src/dm/annotations/ve.dm.SuperscriptAnnotation.js
b/src/dm/annotations/ve.dm.SuperscriptAnnotation.js
index 18d6fe9..216da89 100644
--- a/src/dm/annotations/ve.dm.SuperscriptAnnotation.js
+++ b/src/dm/annotations/ve.dm.SuperscriptAnnotation.js
@@ -14,9 +14,9 @@
* @constructor
* @param {Object} element
*/
-ve.dm.SuperscriptAnnotation = function VeDmSuperscriptAnnotation( element ) {
+ve.dm.SuperscriptAnnotation = function VeDmSuperscriptAnnotation() {
// Parent constructor
- ve.dm.TextStyleAnnotation.call( this, element );
+ ve.dm.SuperscriptAnnotation.super.apply( this, arguments );
};
/* Inheritance */
diff --git a/src/dm/annotations/ve.dm.TextStyleAnnotation.js
b/src/dm/annotations/ve.dm.TextStyleAnnotation.js
index e6f33f7..472353e 100644
--- a/src/dm/annotations/ve.dm.TextStyleAnnotation.js
+++ b/src/dm/annotations/ve.dm.TextStyleAnnotation.js
@@ -13,9 +13,9 @@
* @constructor
* @param {Object} element
*/
-ve.dm.TextStyleAnnotation = function VeDmTextStyleAnnotation( element ) {
+ve.dm.TextStyleAnnotation = function VeDmTextStyleAnnotation() {
// Parent constructor
- ve.dm.Annotation.call( this, element );
+ ve.dm.TextStyleAnnotation.super.apply( this, arguments );
};
/* Inheritance */
diff --git a/src/dm/annotations/ve.dm.UnderlineAnnotation.js
b/src/dm/annotations/ve.dm.UnderlineAnnotation.js
index 944c4ce..f6f99c6 100644
--- a/src/dm/annotations/ve.dm.UnderlineAnnotation.js
+++ b/src/dm/annotations/ve.dm.UnderlineAnnotation.js
@@ -14,9 +14,9 @@
* @constructor
* @param {Object} element
*/
-ve.dm.UnderlineAnnotation = function VeDmUnderlineAnnotation( element ) {
+ve.dm.UnderlineAnnotation = function VeDmUnderlineAnnotation() {
// Parent constructor
- ve.dm.TextStyleAnnotation.call( this, element );
+ ve.dm.UnderlineAnnotation.super.apply( this, arguments );
};
/* Inheritance */
diff --git a/src/dm/annotations/ve.dm.UserInputAnnotation.js
b/src/dm/annotations/ve.dm.UserInputAnnotation.js
index f60781a..391243c 100644
--- a/src/dm/annotations/ve.dm.UserInputAnnotation.js
+++ b/src/dm/annotations/ve.dm.UserInputAnnotation.js
@@ -14,9 +14,9 @@
* @constructor
* @param {Object} element
*/
-ve.dm.UserInputAnnotation = function VeDmUserInputAnnotation( element ) {
+ve.dm.UserInputAnnotation = function VeDmUserInputAnnotation() {
// Parent constructor
- ve.dm.TextStyleAnnotation.call( this, element );
+ ve.dm.UserInputAnnotation.super.apply( this, arguments );
};
/* Inheritance */
diff --git a/src/dm/annotations/ve.dm.VariableAnnotation.js
b/src/dm/annotations/ve.dm.VariableAnnotation.js
index 4b84e11..7ce3fef 100644
--- a/src/dm/annotations/ve.dm.VariableAnnotation.js
+++ b/src/dm/annotations/ve.dm.VariableAnnotation.js
@@ -14,9 +14,9 @@
* @constructor
* @param {Object} element
*/
-ve.dm.VariableAnnotation = function VeDmVariableAnnotation( element ) {
+ve.dm.VariableAnnotation = function VeDmVariableAnnotation() {
// Parent constructor
- ve.dm.TextStyleAnnotation.call( this, element );
+ ve.dm.VariableAnnotation.super.apply( this, arguments );
};
/* Inheritance */
diff --git a/src/dm/lineardata/ve.dm.ElementLinearData.js
b/src/dm/lineardata/ve.dm.ElementLinearData.js
index 528a8cd..1f71b5e 100644
--- a/src/dm/lineardata/ve.dm.ElementLinearData.js
+++ b/src/dm/lineardata/ve.dm.ElementLinearData.js
@@ -15,8 +15,9 @@
* @param {ve.dm.IndexValueStore} store Index-value store
* @param {Array} [data] Linear data
*/
-ve.dm.ElementLinearData = function VeDmElementLinearData( store, data ) {
- ve.dm.FlatLinearData.call( this, store, data );
+ve.dm.ElementLinearData = function VeDmElementLinearData() {
+ // Parent constructor
+ ve.dm.ElementLinearData.super.apply( this, arguments );
};
/* Inheritance */
diff --git a/src/dm/lineardata/ve.dm.FlatLinearData.js
b/src/dm/lineardata/ve.dm.FlatLinearData.js
index a48c86a..287c000 100644
--- a/src/dm/lineardata/ve.dm.FlatLinearData.js
+++ b/src/dm/lineardata/ve.dm.FlatLinearData.js
@@ -15,8 +15,9 @@
* @param {ve.dm.IndexValueStore} store Index-value store
* @param {Array} [data] Linear data
*/
-ve.dm.FlatLinearData = function VeDmFlatLinearData( store, data ) {
- ve.dm.LinearData.call( this, store, data );
+ve.dm.FlatLinearData = function VeDmFlatLinearData() {
+ // Parent constructor
+ ve.dm.FlatLinearData.super.apply( this, arguments );
};
/* Inheritance */
diff --git a/src/dm/lineardata/ve.dm.MetaLinearData.js
b/src/dm/lineardata/ve.dm.MetaLinearData.js
index bb4ed82..2210d7d 100644
--- a/src/dm/lineardata/ve.dm.MetaLinearData.js
+++ b/src/dm/lineardata/ve.dm.MetaLinearData.js
@@ -15,8 +15,9 @@
* @param {ve.dm.IndexValueStore} store Index-value store
* @param {Array} [data] Linear data
*/
-ve.dm.MetaLinearData = function VeDmMetaLinearData( store, data ) {
- ve.dm.LinearData.call( this, store, data );
+ve.dm.MetaLinearData = function VeDmMetaLinearData() {
+ // Parent constructor
+ ve.dm.MetaLinearData.super.apply( this, arguments );
};
/* Inheritance */
diff --git a/src/dm/metaitems/ve.dm.AlienMetaItem.js
b/src/dm/metaitems/ve.dm.AlienMetaItem.js
index 95e67fd..674f6f9 100644
--- a/src/dm/metaitems/ve.dm.AlienMetaItem.js
+++ b/src/dm/metaitems/ve.dm.AlienMetaItem.js
@@ -12,9 +12,9 @@
* @constructor
* @param {Object} element Reference to element in meta-linmod
*/
-ve.dm.AlienMetaItem = function VeDmAlienMetaItem( element ) {
+ve.dm.AlienMetaItem = function VeDmAlienMetaItem() {
// Parent constructor
- ve.dm.MetaItem.call( this, element );
+ ve.dm.AlienMetaItem.super.apply( this, arguments );
};
/* Inheritance */
diff --git a/src/dm/metaitems/ve.dm.CommentMetaItem.js
b/src/dm/metaitems/ve.dm.CommentMetaItem.js
index 7733e6b..d83f43e 100644
--- a/src/dm/metaitems/ve.dm.CommentMetaItem.js
+++ b/src/dm/metaitems/ve.dm.CommentMetaItem.js
@@ -11,8 +11,9 @@
* @constructor
* @param {Object} element Reference to element in meta-linmod
*/
-ve.dm.CommentMetaItem = function VeDmCommentMetaItem( element ) {
- ve.dm.CommentMetaItem.super.call( this, element );
+ve.dm.CommentMetaItem = function VeDmCommentMetaItem() {
+ // Parent constructor
+ ve.dm.CommentMetaItem.super.apply( this, arguments );
};
/* Inheritance */
diff --git a/src/dm/nodes/ve.dm.AlienNode.js b/src/dm/nodes/ve.dm.AlienNode.js
index 41f4213..a16d18a 100644
--- a/src/dm/nodes/ve.dm.AlienNode.js
+++ b/src/dm/nodes/ve.dm.AlienNode.js
@@ -18,7 +18,7 @@
*/
ve.dm.AlienNode = function VeDmAlienNode() {
// Parent constructor
- ve.dm.LeafNode.apply( this, arguments );
+ ve.dm.AlienNode.super.apply( this, arguments );
// Mixin constructors
ve.dm.GeneratedContentNode.call( this );
@@ -84,7 +84,7 @@
*/
ve.dm.AlienBlockNode = function VeDmAlienBlockNode() {
// Parent constructor
- ve.dm.AlienNode.apply( this, arguments );
+ ve.dm.AlienBlockNode.super.apply( this, arguments );
};
OO.inheritClass( ve.dm.AlienBlockNode, ve.dm.AlienNode );
@@ -102,7 +102,7 @@
*/
ve.dm.AlienInlineNode = function VeDmAlienInlineNode() {
// Parent constructor
- ve.dm.AlienNode.apply( this, arguments );
+ ve.dm.AlienInlineNode.super.apply( this, arguments );
};
OO.inheritClass( ve.dm.AlienInlineNode, ve.dm.AlienNode );
diff --git a/src/dm/nodes/ve.dm.BlockImageCaptionNode.js
b/src/dm/nodes/ve.dm.BlockImageCaptionNode.js
index b59c59f..0e270f7 100644
--- a/src/dm/nodes/ve.dm.BlockImageCaptionNode.js
+++ b/src/dm/nodes/ve.dm.BlockImageCaptionNode.js
@@ -16,7 +16,7 @@
*/
ve.dm.BlockImageCaptionNode = function VeDmBlockImageCaptionNode() {
// Parent constructor
- ve.dm.BranchNode.apply( this, arguments );
+ ve.dm.BlockImageCaptionNode.super.apply( this, arguments );
};
OO.inheritClass( ve.dm.BlockImageCaptionNode, ve.dm.BranchNode );
diff --git a/src/dm/nodes/ve.dm.BlockImageNode.js
b/src/dm/nodes/ve.dm.BlockImageNode.js
index 46dea5a..50c5ee4 100644
--- a/src/dm/nodes/ve.dm.BlockImageNode.js
+++ b/src/dm/nodes/ve.dm.BlockImageNode.js
@@ -17,7 +17,7 @@
*/
ve.dm.BlockImageNode = function VeDmBlockImageNode() {
// Parent constructor
- ve.dm.BranchNode.apply( this, arguments );
+ ve.dm.BlockImageNode.super.apply( this, arguments );
// Mixin constructor
ve.dm.ImageNode.call( this );
diff --git a/src/dm/nodes/ve.dm.BreakNode.js b/src/dm/nodes/ve.dm.BreakNode.js
index edea298..cac7b4a 100644
--- a/src/dm/nodes/ve.dm.BreakNode.js
+++ b/src/dm/nodes/ve.dm.BreakNode.js
@@ -15,7 +15,7 @@
*/
ve.dm.BreakNode = function VeDmBreakNode() {
// Parent constructor
- ve.dm.LeafNode.apply( this, arguments );
+ ve.dm.BreakNode.super.apply( this, arguments );
};
/* Inheritance */
diff --git a/src/dm/nodes/ve.dm.CenterNode.js b/src/dm/nodes/ve.dm.CenterNode.js
index 42ef12f..edd9766 100644
--- a/src/dm/nodes/ve.dm.CenterNode.js
+++ b/src/dm/nodes/ve.dm.CenterNode.js
@@ -16,7 +16,7 @@
*/
ve.dm.CenterNode = function VeDmCenterNode() {
// Parent constructor
- ve.dm.BranchNode.apply( this, arguments );
+ ve.dm.CenterNode.super.apply( this, arguments );
};
/* Inheritance */
diff --git a/src/dm/nodes/ve.dm.CommentNode.js
b/src/dm/nodes/ve.dm.CommentNode.js
index dc96417..e386224 100644
--- a/src/dm/nodes/ve.dm.CommentNode.js
+++ b/src/dm/nodes/ve.dm.CommentNode.js
@@ -67,8 +67,8 @@
* @constructor
* @param {Object} element Reference to element in meta-linmod
*/
-ve.dm.RealCommentNode = function VeDmRealCommentNode( element ) {
- ve.dm.RealCommentNode.super.call( this, element );
+ve.dm.RealCommentNode = function VeDmRealCommentNode() {
+ ve.dm.RealCommentNode.super.apply( this, arguments );
};
/* Inheritance */
@@ -82,14 +82,19 @@
ve.dm.RealCommentNode.static.matchTagNames = [ '#comment' ];
/**
+ * Fake comments generated by the converter for the clipboard
+ *
+ * `<span rel="ve:Comment">` is used to to preserve
+ * comments in the clipboard
+ *
* @class
* @extends ve.dm.CommentNode
*
* @constructor
* @param {Object} element Reference to element in meta-linmod
*/
-ve.dm.FakeCommentNode = function VeDmFakeCommentNode( element ) {
- ve.dm.FakeCommentNode.super.call( this, element );
+ve.dm.FakeCommentNode = function VeDmFakeCommentNode() {
+ ve.dm.FakeCommentNode.super.apply( this, arguments );
};
/* Inheritance */
diff --git a/src/dm/nodes/ve.dm.DefinitionListItemNode.js
b/src/dm/nodes/ve.dm.DefinitionListItemNode.js
index 440ecc3..feee136 100644
--- a/src/dm/nodes/ve.dm.DefinitionListItemNode.js
+++ b/src/dm/nodes/ve.dm.DefinitionListItemNode.js
@@ -16,7 +16,7 @@
*/
ve.dm.DefinitionListItemNode = function VeDmDefinitionListItemNode() {
// Parent constructor
- ve.dm.BranchNode.apply( this, arguments );
+ ve.dm.DefinitionListItemNode.super.apply( this, arguments );
};
/* Inheritance */
diff --git a/src/dm/nodes/ve.dm.DefinitionListNode.js
b/src/dm/nodes/ve.dm.DefinitionListNode.js
index e1dbb82..e307112 100644
--- a/src/dm/nodes/ve.dm.DefinitionListNode.js
+++ b/src/dm/nodes/ve.dm.DefinitionListNode.js
@@ -16,7 +16,7 @@
*/
ve.dm.DefinitionListNode = function VeDmDefinitionListNode() {
// Parent constructor
- ve.dm.BranchNode.apply( this, arguments );
+ ve.dm.DefinitionListNode.super.apply( this, arguments );
};
/* Inheritance */
diff --git a/src/dm/nodes/ve.dm.DivNode.js b/src/dm/nodes/ve.dm.DivNode.js
index 3a1fe15..045efa0 100644
--- a/src/dm/nodes/ve.dm.DivNode.js
+++ b/src/dm/nodes/ve.dm.DivNode.js
@@ -16,7 +16,7 @@
*/
ve.dm.DivNode = function VeDmDivNode() {
// Parent constructor
- ve.dm.BranchNode.apply( this, arguments );
+ ve.dm.DivNode.super.apply( this, arguments );
};
/* Inheritance */
diff --git a/src/dm/nodes/ve.dm.DocumentNode.js
b/src/dm/nodes/ve.dm.DocumentNode.js
index c30f594..4161f50 100644
--- a/src/dm/nodes/ve.dm.DocumentNode.js
+++ b/src/dm/nodes/ve.dm.DocumentNode.js
@@ -15,7 +15,7 @@
*/
ve.dm.DocumentNode = function VeDmDocumentNode( children ) {
// Parent constructor
- ve.dm.BranchNode.call( this, null, children );
+ ve.dm.DocumentNode.super.call( this, null, children );
// Properties
this.root = this;
diff --git a/src/dm/nodes/ve.dm.HeadingNode.js
b/src/dm/nodes/ve.dm.HeadingNode.js
index cc7eb88..1de9ba0 100644
--- a/src/dm/nodes/ve.dm.HeadingNode.js
+++ b/src/dm/nodes/ve.dm.HeadingNode.js
@@ -16,7 +16,7 @@
*/
ve.dm.HeadingNode = function VeDmHeadingNode() {
// Parent constructor
- ve.dm.BranchNode.apply( this, arguments );
+ ve.dm.HeadingNode.super.apply( this, arguments );
};
/* Inheritance */
diff --git a/src/dm/nodes/ve.dm.InlineImageNode.js
b/src/dm/nodes/ve.dm.InlineImageNode.js
index e51f892..94674c0 100644
--- a/src/dm/nodes/ve.dm.InlineImageNode.js
+++ b/src/dm/nodes/ve.dm.InlineImageNode.js
@@ -16,7 +16,7 @@
*/
ve.dm.InlineImageNode = function VeDmImageNode() {
// Parent constructor
- ve.dm.LeafNode.apply( this, arguments );
+ ve.dm.InlineImageNode.super.apply( this, arguments );
// Mixin constructor
ve.dm.ImageNode.call( this );
diff --git a/src/dm/nodes/ve.dm.InternalItemNode.js
b/src/dm/nodes/ve.dm.InternalItemNode.js
index e71d764..b0cb54a 100644
--- a/src/dm/nodes/ve.dm.InternalItemNode.js
+++ b/src/dm/nodes/ve.dm.InternalItemNode.js
@@ -16,7 +16,7 @@
*/
ve.dm.InternalItemNode = function VeDmInternalItemNode() {
// Parent constructor
- ve.dm.BranchNode.apply( this, arguments );
+ ve.dm.InternalItemNode.super.apply( this, arguments );
};
/* Inheritance */
diff --git a/src/dm/nodes/ve.dm.InternalListNode.js
b/src/dm/nodes/ve.dm.InternalListNode.js
index 745b331..86c78a3 100644
--- a/src/dm/nodes/ve.dm.InternalListNode.js
+++ b/src/dm/nodes/ve.dm.InternalListNode.js
@@ -16,7 +16,7 @@
*/
ve.dm.InternalListNode = function VeDmInternalListNode() {
// Parent constructor
- ve.dm.BranchNode.apply( this, arguments );
+ ve.dm.InternalListNode.super.apply( this, arguments );
};
/* Inheritance */
diff --git a/src/dm/nodes/ve.dm.ListItemNode.js
b/src/dm/nodes/ve.dm.ListItemNode.js
index c2e26ea..2a9ce0f 100644
--- a/src/dm/nodes/ve.dm.ListItemNode.js
+++ b/src/dm/nodes/ve.dm.ListItemNode.js
@@ -16,7 +16,7 @@
*/
ve.dm.ListItemNode = function VeDmListItemNode() {
// Parent constructor
- ve.dm.BranchNode.apply( this, arguments );
+ ve.dm.ListItemNode.super.apply( this, arguments );
};
/* Inheritance */
diff --git a/src/dm/nodes/ve.dm.ListNode.js b/src/dm/nodes/ve.dm.ListNode.js
index 6241f99..0c54f9e 100644
--- a/src/dm/nodes/ve.dm.ListNode.js
+++ b/src/dm/nodes/ve.dm.ListNode.js
@@ -16,7 +16,7 @@
*/
ve.dm.ListNode = function VeDmListNode() {
// Parent constructor
- ve.dm.BranchNode.apply( this, arguments );
+ ve.dm.ListNode.super.apply( this, arguments );
};
/* Inheritance */
diff --git a/src/dm/nodes/ve.dm.ParagraphNode.js
b/src/dm/nodes/ve.dm.ParagraphNode.js
index 4bfa322..dcd7544 100644
--- a/src/dm/nodes/ve.dm.ParagraphNode.js
+++ b/src/dm/nodes/ve.dm.ParagraphNode.js
@@ -16,7 +16,7 @@
*/
ve.dm.ParagraphNode = function VeDmParagraphNode() {
// Parent constructor
- ve.dm.BranchNode.apply( this, arguments );
+ ve.dm.ParagraphNode.super.apply( this, arguments );
};
/* Inheritance */
diff --git a/src/dm/nodes/ve.dm.PreformattedNode.js
b/src/dm/nodes/ve.dm.PreformattedNode.js
index 765bcc5..9865b4b 100644
--- a/src/dm/nodes/ve.dm.PreformattedNode.js
+++ b/src/dm/nodes/ve.dm.PreformattedNode.js
@@ -16,7 +16,7 @@
*/
ve.dm.PreformattedNode = function VeDmPreformattedNode() {
// Parent constructor
- ve.dm.BranchNode.apply( this, arguments );
+ ve.dm.PreformattedNode.super.apply( this, arguments );
};
/* Inheritance */
diff --git a/src/dm/nodes/ve.dm.TableCaptionNode.js
b/src/dm/nodes/ve.dm.TableCaptionNode.js
index 268d9ef..f24f932 100644
--- a/src/dm/nodes/ve.dm.TableCaptionNode.js
+++ b/src/dm/nodes/ve.dm.TableCaptionNode.js
@@ -16,7 +16,7 @@
*/
ve.dm.TableCaptionNode = function VeDmTableCaptionNode() {
// Parent constructor
- ve.dm.BranchNode.apply( this, arguments );
+ ve.dm.TableCaptionNode.super.apply( this, arguments );
};
/* Inheritance */
diff --git a/src/dm/nodes/ve.dm.TableCellNode.js
b/src/dm/nodes/ve.dm.TableCellNode.js
index ae70b72..218b2d8 100644
--- a/src/dm/nodes/ve.dm.TableCellNode.js
+++ b/src/dm/nodes/ve.dm.TableCellNode.js
@@ -16,7 +16,7 @@
*/
ve.dm.TableCellNode = function VeDmTableCellNode() {
// Parent constructor
- ve.dm.BranchNode.apply( this, arguments );
+ ve.dm.TableCellNode.super.apply( this, arguments );
// Events
this.connect( this, {
diff --git a/src/dm/nodes/ve.dm.TableNode.js b/src/dm/nodes/ve.dm.TableNode.js
index 4e30d94..1fdfd05 100644
--- a/src/dm/nodes/ve.dm.TableNode.js
+++ b/src/dm/nodes/ve.dm.TableNode.js
@@ -14,12 +14,12 @@
* @param {ve.dm.Node[]} [children]
*/
ve.dm.TableNode = function VeDmTableNode() {
+ // Parent constructor
+ ve.dm.TableNode.super.apply( this, arguments );
+
// A dense representation of the sparse model to make manipulations
// in presence of spanning cells feasible.
this.matrix = new ve.dm.TableMatrix( this );
-
- // Parent constructor
- ve.dm.BranchNode.apply( this, arguments );
// Events
this.connect( this, { splice: 'onSplice' } );
diff --git a/src/dm/nodes/ve.dm.TableRowNode.js
b/src/dm/nodes/ve.dm.TableRowNode.js
index 43e936b..ae38d92 100644
--- a/src/dm/nodes/ve.dm.TableRowNode.js
+++ b/src/dm/nodes/ve.dm.TableRowNode.js
@@ -16,7 +16,7 @@
*/
ve.dm.TableRowNode = function VeDmTableRowNode() {
// Parent constructor
- ve.dm.BranchNode.apply( this, arguments );
+ ve.dm.TableRowNode.super.apply( this, arguments );
// Events
this.connect( this, { splice: 'onSplice' } );
diff --git a/src/dm/nodes/ve.dm.TableSectionNode.js
b/src/dm/nodes/ve.dm.TableSectionNode.js
index d0ff717..3b6d979 100644
--- a/src/dm/nodes/ve.dm.TableSectionNode.js
+++ b/src/dm/nodes/ve.dm.TableSectionNode.js
@@ -16,7 +16,7 @@
*/
ve.dm.TableSectionNode = function VeDmTableSectionNode() {
// Parent constructor
- ve.dm.BranchNode.apply( this, arguments );
+ ve.dm.TableSectionNode.super.apply( this, arguments );
// Events
this.connect( this, { splice: 'onSplice' } );
diff --git a/src/dm/nodes/ve.dm.TextNode.js b/src/dm/nodes/ve.dm.TextNode.js
index 9508c01..ab10c5e 100644
--- a/src/dm/nodes/ve.dm.TextNode.js
+++ b/src/dm/nodes/ve.dm.TextNode.js
@@ -15,7 +15,7 @@
*/
ve.dm.TextNode = function VeDmTextNode( length ) {
// Parent constructor
- ve.dm.LeafNode.call( this );
+ ve.dm.TextNode.super.call( this );
// TODO: length is only set on construction in tests
this.length = length || 0;
--
To view, visit https://gerrit.wikimedia.org/r/172975
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I5039a802d0add69b8977d1f37aaddb71b15ff90e
Gerrit-PatchSet: 3
Gerrit-Project: VisualEditor/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Esanders <[email protected]>
Gerrit-Reviewer: Catrope <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits