Alex Monk has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/324823

Change subject: Use widget.getApi, not this.getApi
......................................................................

Use widget.getApi, not this.getApi

Bug: T152154
Change-Id: Id7e77323ffabf4eeee3e73481cf6bcb9a1e649dc
---
M modules/ve-mw/ui/widgets/ve.ui.MWTemplateTitleInputWidget.js
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VisualEditor 
refs/changes/23/324823/1

diff --git a/modules/ve-mw/ui/widgets/ve.ui.MWTemplateTitleInputWidget.js 
b/modules/ve-mw/ui/widgets/ve.ui.MWTemplateTitleInputWidget.js
index eb34fc4..93e812e 100644
--- a/modules/ve-mw/ui/widgets/ve.ui.MWTemplateTitleInputWidget.js
+++ b/modules/ve-mw/ui/widgets/ve.ui.MWTemplateTitleInputWidget.js
@@ -93,7 +93,7 @@
                                        if ( widget.showRedirects ) {
                                                params.redirects = '1';
                                        }
-                                       xhr = this.getApi().get( params );
+                                       xhr = widget.getApi().get( params );
                                        return xhr.promise( { abort: xhr.abort 
} );
                                }
                        } )

-- 
To view, visit https://gerrit.wikimedia.org/r/324823
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id7e77323ffabf4eeee3e73481cf6bcb9a1e649dc
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Alex Monk <a...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to