Esanders has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/344800 )
Change subject: Remove superfluous setting of canContainContent when inheriting from CBN ...................................................................... Remove superfluous setting of canContainContent when inheriting from CBN Change-Id: Ieb318ad9febb155e669fbd52cdd53a7a19d1b927 --- M src/dm/nodes/ve.dm.HeadingNode.js M src/dm/nodes/ve.dm.ParagraphNode.js M src/dm/nodes/ve.dm.PreformattedNode.js 3 files changed, 0 insertions(+), 6 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/VisualEditor/VisualEditor refs/changes/00/344800/1 diff --git a/src/dm/nodes/ve.dm.HeadingNode.js b/src/dm/nodes/ve.dm.HeadingNode.js index a0a6ec0..495fa73 100644 --- a/src/dm/nodes/ve.dm.HeadingNode.js +++ b/src/dm/nodes/ve.dm.HeadingNode.js @@ -27,8 +27,6 @@ ve.dm.HeadingNode.static.name = 'heading'; -ve.dm.HeadingNode.static.canContainContent = true; - ve.dm.HeadingNode.static.defaultAttributes = { level: 1 }; diff --git a/src/dm/nodes/ve.dm.ParagraphNode.js b/src/dm/nodes/ve.dm.ParagraphNode.js index 8d30baf..2261fd6 100644 --- a/src/dm/nodes/ve.dm.ParagraphNode.js +++ b/src/dm/nodes/ve.dm.ParagraphNode.js @@ -27,8 +27,6 @@ ve.dm.ParagraphNode.static.name = 'paragraph'; -ve.dm.ParagraphNode.static.canContainContent = true; - ve.dm.ParagraphNode.static.matchTagNames = [ 'p' ]; /* Registration */ diff --git a/src/dm/nodes/ve.dm.PreformattedNode.js b/src/dm/nodes/ve.dm.PreformattedNode.js index 94ad080..98b5ecf 100644 --- a/src/dm/nodes/ve.dm.PreformattedNode.js +++ b/src/dm/nodes/ve.dm.PreformattedNode.js @@ -27,8 +27,6 @@ ve.dm.PreformattedNode.static.name = 'preformatted'; -ve.dm.PreformattedNode.static.canContainContent = true; - ve.dm.PreformattedNode.static.hasSignificantWhitespace = true; ve.dm.PreformattedNode.static.matchTagNames = [ 'pre' ]; -- To view, visit https://gerrit.wikimedia.org/r/344800 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ieb318ad9febb155e669fbd52cdd53a7a19d1b927 Gerrit-PatchSet: 1 Gerrit-Project: VisualEditor/VisualEditor Gerrit-Branch: master Gerrit-Owner: Esanders <esand...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits