deferSetup: true
});
- if (Environment.browser() === 'microsoft' && _sidebar.clientWidth > 305) {
+ if (Environment.browser() === 'microsoft' && _sidebar !== null && _sidebar.clientWidth > 305) {
this._fixSidebarIE();
}
},
},
_fixSidebarIE: function() {
+ if (_sidebar === null) return;
+
// sidebar is rarely broken on IE9/IE10
_sidebar.style.setProperty('display', 'none');
_sidebar.style.removeProperty('display');
},
_initSidebarToggleButtons: function() {
+ if (_sidebar === null) return;
+
var sidebarPosition = (_main.classList.contains('sidebarOrientationLeft')) ? 'Left' : '';
sidebarPosition = (sidebarPosition) ? sidebarPosition : (_main.classList.contains('sidebarOrientationRight') ? 'Right' : '');