Merge "UsernameCompletionAction: Document constructor and pass all args"

This commit is contained in:
jenkins-bot 2023-05-24 19:02:22 +00:00 committed by Gerrit Code Review
commit c28bcaaabd

View file

@ -26,12 +26,13 @@ function hasUser( authors, username ) {
* @extends ve.ui.CompletionAction
* @constructor
* @param {ve.ui.Surface} surface Surface to act on
* @param {string} [source]
*/
function MWUsernameCompletionAction( surface ) {
function MWUsernameCompletionAction() {
var action = this;
// Parent constructor
MWUsernameCompletionAction.super.call( this, surface );
MWUsernameCompletionAction.super.apply( this, arguments );
// Shared API object so previous requests can be aborted
this.api = controller.getApi();