mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 00:30:44 +00:00
Merge "Make focus method of AceEditorWidget chainable"
This commit is contained in:
commit
52f151193a
|
@ -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;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue