jenkins-bot has submitted this change and it was merged.
Change subject: Hygiene: Fix some jsduck warnings
......................................................................
Hygiene: Fix some jsduck warnings
Change-Id: I235312aae8c3f6682ca233866d22b5a381dd43a8
---
M javascripts/api.js
M javascripts/modules/categories/CategoryApi.js
M javascripts/modules/categories/CategoryLookupInputWidget.js
3 files changed, 8 insertions(+), 4 deletions(-)
Approvals:
Bmansurov: Looks good to me, approved
jenkins-bot: Verified
diff --git a/javascripts/api.js b/javascripts/api.js
index 8644012..5a64019 100644
--- a/javascripts/api.js
+++ b/javascripts/api.js
@@ -9,6 +9,10 @@
* @extends EventEmitter
*/
Api = EventEmitter.extend( mw.Api.prototype ).extend( {
+ /**
+ * @property {String} apiURL
+ * URL to the api endpoint (api.php)
+ */
apiUrl: mw.util.wikiScript( 'api' ),
/**
diff --git a/javascripts/modules/categories/CategoryApi.js
b/javascripts/modules/categories/CategoryApi.js
index 0dff379..425526c 100644
--- a/javascripts/modules/categories/CategoryApi.js
+++ b/javascripts/modules/categories/CategoryApi.js
@@ -6,7 +6,7 @@
/**
* Api for CategoryOverlay
* @class CategoryApi
- * @extends Api
+ * @extends SearchApi
*/
CategoryApi = SearchApi.extend( {
/**
@@ -30,7 +30,7 @@
* Saves the categories passed to this function to the page
* @param {String} title Title of the current page (to add the
categories to)
* @param {String} categories List of Categories to add
- * @returns {jquery.Deferred}
+ * @returns {jQuery.Deferred}
*/
save: function ( title, categories ) {
return this.postWithToken( 'edit', {
@@ -44,7 +44,7 @@
/**
* Returns the categories the title belongs to.
* @param {String} title Title of the current page (to add the
categories to)
- * @returns {jquery.Deferred}
+ * @returns {jQuery.Deferred}
*/
getCategories: function ( title ) {
return this.get( {
diff --git a/javascripts/modules/categories/CategoryLookupInputWidget.js
b/javascripts/modules/categories/CategoryLookupInputWidget.js
index 69544d0..43cb1a4 100644
--- a/javascripts/modules/categories/CategoryLookupInputWidget.js
+++ b/javascripts/modules/categories/CategoryLookupInputWidget.js
@@ -58,7 +58,7 @@
/**
* Get a list of menu item widgets from the data stored by the lookup
request's done handler.
* @param {Mixed} data Cached result data, usually an array
- * @return {OO.ui.MenuOptionWidget[]}
+ * @return {Array} Array of OO.ui.MenuOptionWidget
*/
CategoryLookupInputWidget.prototype.getLookupMenuOptionsFromData =
function ( data ) {
var result = [],
--
To view, visit https://gerrit.wikimedia.org/r/186592
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I235312aae8c3f6682ca233866d22b5a381dd43a8
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Florianschmidtwelzow <[email protected]>
Gerrit-Reviewer: Bmansurov <[email protected]>
Gerrit-Reviewer: Florianschmidtwelzow <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits