Assignment got lost, so caching did not work.

Change-Id: If7f6df5b6c6d6156894803670263f34f2850a29a
This commit is contained in:
Niklas Laxström
2016-05-09 16:16:45 +02:00
parent 70be53a283
commit 146949ce43

View File

@@ -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;
}, },
/** /**