Merge "ve.ui.MWMediaResultWidget: Use .on() instead of .error()"

This commit is contained in:
jenkins-bot 2014-05-07 20:42:33 +00:00 committed by Gerrit Code Review
commit 5ef8131510

View file

@ -78,9 +78,11 @@ ve.ui.MWMediaResultWidget.prototype.buildThumbnail = function () {
$thumb = $back.add( $front ); $thumb = $back.add( $front );
// Preload image // Preload image
$image $image.on( {
.load( ve.bind( this.onThumbnailLoad, this ) ) 'load': ve.bind( this.onThumbnailLoad, this ),
.error( ve.bind( this.onThumbnailError, this ) ); 'error': ve.bind( this.onThumbnailError, this )
} );
image.src = info.thumburl; image.src = info.thumburl;
$thumb.addClass( 've-ui-mwMediaResultWidget-thumbnail' ); $thumb.addClass( 've-ui-mwMediaResultWidget-thumbnail' );