From cd46194bb0e42ec2f573e999ed420a956861b781 Mon Sep 17 00:00:00 2001 From: YUKI Hiroshi Date: Tue, 3 Mar 2015 19:10:35 +0900 Subject: [PATCH] Return boolean value for "isXXX" property --- modules/window.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/modules/window.js b/modules/window.js index 45b68f10..e289d633 100644 --- a/modules/window.js +++ b/modules/window.js @@ -283,12 +283,13 @@ TreeStyleTabWindow.prototype = inherit(TreeStyleTabBase, { get isAutoHide() { - return this.window.fullScreen ? - ( - prefs.getPref('browser.fullscreen.autohide') && - utils.getTreePref('tabbar.autoHide.mode.fullscreen') - ) : - utils.getTreePref('tabbar.autoHide.mode'); + if (this.window.fullScreen) + return Boolean( + prefs.getPref('browser.fullscreen.autohide') && + utils.getTreePref('tabbar.autoHide.mode.fullscreen') + ); + + return utils.getTreePref('tabbar.autoHide.mode') != this.autoHide.kMODE_DISABLED; }, get autoHideWindow()