Fix fail in 1bc3f3b
Assignment got lost, so caching did not work. Change-Id: If7f6df5b6c6d6156894803670263f34f2850a29a
This commit is contained in:
@@ -323,9 +323,15 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get common languages - the most probable languages predicted by ULS.
|
* Get common languages - the most probable languages predicted by ULS.
|
||||||
|
*
|
||||||
|
* @param {Array} languages Array of all languages.
|
||||||
*/
|
*/
|
||||||
getCommonLanguages: function ( languages ) {
|
getCommonLanguages: function ( languages ) {
|
||||||
return this.commonInterlanguageList || this.filterByCommonLanguages( languages );
|
if ( this.commonInterlanguageList === null ) {
|
||||||
|
this.commonInterlanguageList = this.filterByCommonLanguages( languages );
|
||||||
|
}
|
||||||
|
|
||||||
|
return this.commonInterlanguageList;
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user