Update jquery.uls from upstream
Return an empty array if there are no languages in territory. Addresses T265158. Updating to https://github.com/wikimedia/jquery.uls/commit/9a1f5c0e5a071b8a96f15056f367a83dd59bec0c Bug: T265158 Change-Id: I36f69a2007791a4469eff6415eedbaecc3f60f70
This commit is contained in:
@@ -282,7 +282,7 @@
|
||||
* @return {string[]} list of language codes
|
||||
*/
|
||||
$.uls.data.getLanguagesInTerritory = function ( territory ) {
|
||||
return $.uls.data.territories[ territory ];
|
||||
return $.uls.data.territories[ territory ] || [];
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user