Merge "Clean up static stuff in dm.GeneratedContentNode"

This commit is contained in:
jenkins-bot 2013-06-24 21:52:08 +00:00 committed by Gerrit Code Review
commit 809579a4e4
3 changed files with 4 additions and 7 deletions

View file

@ -37,8 +37,7 @@ ve.dm.AlienNode.static.name = 'alien';
ve.dm.AlienNode.static.storeHtmlAttributes = false;
// TODO: Develop better method to test for generated content
ve.dm.AlienNode.static.generatedContent = true;
ve.dm.AlienNode.static.enableAboutGrouping = true;
ve.dm.AlienNode.static.toDataElement = function ( domElements, converter ) {
var isInline = this.isHybridInline( domElements, converter ),

View file

@ -17,14 +17,10 @@
ve.dm.GeneratedContentNode = function VeDmGeneratedContentNode() {
};
/* Static members */
/* Static methods */
ve.dm.GeneratedContentNode.static = {};
ve.dm.GeneratedContentNode.static.matchTagNames = [];
ve.dm.GeneratedContentNode.static.enableAboutGrouping = true;
/**
* Store HTML of DOM elements, hashed on data element
* @param {Object} dataElement Data element

View file

@ -51,6 +51,8 @@ ve.dm.MWTransclusionNode.static.matchFunction = function ( domElement ) {
) !== -1;
};
ve.dm.MWTransclusionNode.static.enableAboutGrouping = true;
ve.dm.MWTransclusionNode.static.getHashObject = function ( dataElement ) {
return {
type: dataElement.type,