mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 00:30:44 +00:00
Remove ve.ce.ImageNode.prototype.onUpdate
Was empty. Bonus: consistently use object style for .attr(), was already used for .css() Change-Id: Idd0592d6f30388c9952e110ff6fff008bb465877
This commit is contained in:
parent
0c6dadb605
commit
1999ece918
|
@ -31,14 +31,15 @@ ve.ce.ImageNode = function VeCeImageNode( model, config ) {
|
||||||
this.$image = this.$;
|
this.$image = this.$;
|
||||||
|
|
||||||
// Events
|
// Events
|
||||||
this.model.connect( this, { 'update': 'onUpdate' } );
|
|
||||||
this.$.on( 'click', ve.bind( this.onClick, this ) );
|
this.$.on( 'click', ve.bind( this.onClick, this ) );
|
||||||
|
|
||||||
// Initialization
|
// Initialization
|
||||||
this.$image
|
this.$image
|
||||||
.addClass( 've-ce-imageNode' )
|
.addClass( 've-ce-imageNode' )
|
||||||
.attr( 'alt', this.model.getAttribute( 'alt' ) )
|
.attr( {
|
||||||
.attr( 'src', this.model.getAttribute( 'src' ) )
|
'alt': this.model.getAttribute( 'alt' ),
|
||||||
|
'src': this.model.getAttribute( 'src' )
|
||||||
|
} )
|
||||||
.css( {
|
.css( {
|
||||||
'width': this.model.getAttribute( 'width' ),
|
'width': this.model.getAttribute( 'width' ),
|
||||||
'height': this.model.getAttribute( 'height' )
|
'height': this.model.getAttribute( 'height' )
|
||||||
|
@ -83,14 +84,6 @@ ve.ce.ImageNode.prototype.onAttributeChange = function ( key, from, to ) {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* Update method
|
|
||||||
*
|
|
||||||
* @method
|
|
||||||
*/
|
|
||||||
ve.ce.ImageNode.prototype.onUpdate = function () {
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Handle the mouse click.
|
* Handle the mouse click.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue