JSCS fixes

Change-Id: I11032f05eaee1e8c895e06ebbc9c329cbc70c8c0
This commit is contained in:
Ed Sanders 2013-12-13 18:05:21 +00:00
parent 0a203fec65
commit 8e3f77a9e7
2 changed files with 3 additions and 7 deletions

View file

@ -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' ) ) );
}
};
/**

View file

@ -70,7 +70,6 @@ ve.ui.MWMediaEditDialog.static.toolbarGroups = [
}
];
ve.ui.MWMediaEditDialog.static.surfaceCommands = [
'undo',
'redo',