Merge "Make focus method of AceEditorWidget chainable"

This commit is contained in:
jenkins-bot 2015-11-18 20:29:48 +00:00 committed by Gerrit Code Review
commit 52f151193a

View file

@ -268,6 +268,8 @@ ve.ui.MWAceEditorWidget.prototype.setLanguage = function ( lang ) {
/**
* Focus the editor
*
* @chainable
*/
ve.ui.MWAceEditorWidget.prototype.focus = function () {
var widget = this;
@ -276,6 +278,7 @@ ve.ui.MWAceEditorWidget.prototype.focus = function () {
} ).fail( function () {
ve.ui.MWAceEditorWidget.super.prototype.focus.call( widget );
} );
return this;
};
/**