%PDF- %PDF-
Direktori : /www/varak.net/wiki.varak.net/extensions/VisualEditor/lib/ve/src/ce/ |
Current File : /www/varak.net/wiki.varak.net/extensions/VisualEditor/lib/ve/src/ce/ve.ce.AlignableNode.js |
/*! * VisualEditor ContentEditable AlignableNode class. * * @copyright 2011-2016 VisualEditor Team and others; see http://ve.mit-license.org */ /** * ContentEditable Alignable node. * * @class * @abstract * @extends ve.ce.ClassAttributeNode * * @constructor */ ve.ce.AlignableNode = function VeCeAlignableNode() { // Parent constructor ve.ce.AlignableNode.super.apply( this, arguments ); this.align = null; }; /* Inheritance */ OO.inheritClass( ve.ce.AlignableNode, ve.ce.ClassAttributeNode ); /* Events */ /** * @event align * @param {string} align New alignment */ /** * @inheritdoc */ ve.ce.AlignableNode.prototype.updateAttributeClasses = function () { var align; ve.ce.AlignableNode.super.prototype.updateAttributeClasses.apply( this, arguments ); align = this.model.getAttribute( 'align' ); if ( align && align !== this.align ) { this.emit( 'align', align ); this.align = align; } };