Revert "Restore support for IE8"
This reverts commit c33ac5fdb4.
This must be fixed upstream.
Merged by mistake.
Change-Id: I0ebf6a80c693e01bdb6eba971f44b9fb402a8f32
This commit is contained in:
@@ -354,25 +354,13 @@
|
|||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
getMenuWidth: function () {
|
getMenuWidth: function () {
|
||||||
var language, languagesCount = 0;
|
var languagesCount;
|
||||||
|
|
||||||
if ( this.options.menuWidth ) {
|
if ( this.options.menuWidth ) {
|
||||||
return this.options.menuWidth;
|
return this.options.menuWidth;
|
||||||
}
|
}
|
||||||
|
|
||||||
// IE8 does not support Object.keys
|
languagesCount = Object.keys( this.options.languages ).length;
|
||||||
if ( Object.keys ) {
|
|
||||||
languagesCount = Object.keys( this.options.languages ).length;
|
|
||||||
} else {
|
|
||||||
for ( language in this.options.languages ) {
|
|
||||||
if ( Object.prototype.hasOwnProperty.call(
|
|
||||||
this.options.languages,
|
|
||||||
language
|
|
||||||
) ) {
|
|
||||||
languagesCount++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( languagesCount < 12 ) {
|
if ( languagesCount < 12 ) {
|
||||||
return 'narrow';
|
return 'narrow';
|
||||||
|
|||||||
Reference in New Issue
Block a user