From 5ed2ff7d8f022677dffd797fe532b70681e6a846 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20Laxstr=C3=B6m?= Date: Wed, 10 Oct 2018 15:24:17 +0200 Subject: [PATCH] Update some outdated comments Change-Id: I73c7b0549d7335019a1919229afa2e45a92ffacd --- resources/js/ext.uls.compactlinks.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/resources/js/ext.uls.compactlinks.js b/resources/js/ext.uls.compactlinks.js index a03f3ef9..7fe1fc6a 100644 --- a/resources/js/ext.uls.compactlinks.js +++ b/resources/js/ext.uls.compactlinks.js @@ -423,9 +423,6 @@ * Get languages in which a related page has any kind of a badge, * such as "featured article". The "badge-*" classes are added by Wikibase. * - * The reader doesn't necessarily know this language, but it - * appears relevant to the page. - * * @return {string[]} Language codes */ CompactInterlanguageList.prototype.getLangsWithBadges = function () { @@ -440,10 +437,9 @@ }; /** - * Find out the existing languages supported - * by the article and fetch their href. + * Get the list of languages links. * - * @return {Object} List of existing language codes and their hrefs + * @return {Object} Map of language codes to data */ CompactInterlanguageList.prototype.getInterlanguageList = function () { var interlanguageList = {}; @@ -478,7 +474,9 @@ }; /** - * Hide the original interlanguage list + * Hide languages in the interlanguage list. + * + * The most relevant ones are unhidden in #render. */ CompactInterlanguageList.prototype.hideOriginal = function () { var links = this.listElement.querySelectorAll( '.interlanguage-link' ),