Update jquery.uls from upstream

Return an empty array if there are no languages in territory.

Addresses T265158.

Updating to
9a1f5c0e5a

Bug: T265158
Change-Id: I36f69a2007791a4469eff6415eedbaecc3f60f70
This commit is contained in:
Amir Aharoni
2020-11-16 13:32:50 +02:00
parent 835d1dd586
commit 78884e87b2

View File

@@ -282,7 +282,7 @@
* @return {string[]} list of language codes * @return {string[]} list of language codes
*/ */
$.uls.data.getLanguagesInTerritory = function ( territory ) { $.uls.data.getLanguagesInTerritory = function ( territory ) {
return $.uls.data.territories[ territory ]; return $.uls.data.territories[ territory ] || [];
}; };
/** /**