mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-24 18:58:42 +00:00
JSCS fixes
Change-Id: I11032f05eaee1e8c895e06ebbc9c329cbc70c8c0
This commit is contained in:
parent
0a203fec65
commit
8e3f77a9e7
|
@ -83,10 +83,8 @@ ve.ce.MWBlockImageNode = function VeCeMWBlockImageNode( model, config ) {
|
|||
|
||||
// Events
|
||||
this.model.connect( this, { 'attributeChange': 'onAttributeChange' } );
|
||||
|
||||
};
|
||||
|
||||
|
||||
/* Inheritance */
|
||||
|
||||
OO.inheritClass( ve.ce.MWBlockImageNode, ve.ce.BranchNode );
|
||||
|
@ -128,7 +126,7 @@ ve.ce.MWBlockImageNode.static.cssClasses = {
|
|||
* on the rdfaToType object in the model.
|
||||
* @returns {Object.<string,string>} A type to Rdfa conversion object
|
||||
*/
|
||||
ve.ce.MWBlockImageNode.prototype.getTypeToRdfa = function() {
|
||||
ve.ce.MWBlockImageNode.prototype.getTypeToRdfa = function () {
|
||||
var rdfa, obj = {};
|
||||
|
||||
for ( rdfa in this.model.constructor.static.rdfaToType ) {
|
||||
|
@ -181,7 +179,7 @@ ve.ce.MWBlockImageNode.prototype.setCaptionVisible = function ( isVisible ) {
|
|||
* @param {string} to The new alignment
|
||||
* @param {string} type The type of the image to which to align
|
||||
*/
|
||||
ve.ce.MWBlockImageNode.prototype.updateAlignment = function( from, to, type ) {
|
||||
ve.ce.MWBlockImageNode.prototype.updateAlignment = function ( from, to, type ) {
|
||||
if ( from !== to ) {
|
||||
// remove previous alignment:
|
||||
this.$figure
|
||||
|
@ -275,10 +273,9 @@ ve.ce.MWBlockImageNode.prototype.onSetup = function () {
|
|||
ve.ce.BranchNode.prototype.onSetup.call( this );
|
||||
|
||||
this.updateAlignment( this.alignment, this.alignment, type );
|
||||
if ( type !== 'none' && type !=='frameless' ) {
|
||||
if ( type !== 'none' && type !== 'frameless' ) {
|
||||
this.$element.addClass( this.getCssClass( 'default', this.model.getAttribute( 'align' ) ) );
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
@ -70,7 +70,6 @@ ve.ui.MWMediaEditDialog.static.toolbarGroups = [
|
|||
}
|
||||
];
|
||||
|
||||
|
||||
ve.ui.MWMediaEditDialog.static.surfaceCommands = [
|
||||
'undo',
|
||||
'redo',
|
||||
|
|
Loading…
Reference in a new issue