mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-24 00:13:36 +00:00
Merge "UsernameCompletionAction: Document constructor and pass all args"
This commit is contained in:
commit
c28bcaaabd
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue