mediawiki-extensions-Visual.../modules/ve/ce/nodes/ve.ce.TableRowNode.js
Trevor Parscal a2eee63525 Updated CSS classes and rules for CE, which for the most part uses native elements
Also:
* Simplified ve.ce.Surface.getLeafNode, which may be better to just be removed and be used inline in the few places it's being used.
* Removed method wrapper for static function ve.ce.Surface.getLeafNode

Change-Id: I1d4cf0bb7ecc8f07f030753e40a13ebef7d02daa
2012-04-04 11:54:06 -07:00

29 lines
597 B
JavaScript

/**
* Creates an ve.ce.TableRowNode object.
*
* @class
* @constructor
* @extends {ve.ce.BranchNode}
* @param {ve.dm.TableRowNode} model Table row model to view
*/
ve.ce.TableRowNode = function( model ) {
// Inheritance
ve.ce.BranchNode.call( this, model, $( '<tr></tr>' ), true );
// DOM Changes
this.$
.attr( 'style', model.getElementAttribute( 'html/style' ) )
.addClass( 've-ce-tableRowNode' );
};
/* Registration */
ve.ce.DocumentNode.splitRules.tableRow = {
'self': false,
'children': false
};
/* Inheritance */
ve.extendClass( ve.ce.TableRowNode, ve.ce.BranchNode );