fix(ToolbarToggler): remove Yoda condition

Is not very readable and is not used across the project
This commit is contained in:
paweldomas 2016-10-21 09:20:17 -05:00
parent f7bfe8d8bf
commit ecfc56461e
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ function hideToolbar(force) { // eslint-disable-line no-unused-vars
clearTimeout(toolbarTimeoutObject); clearTimeout(toolbarTimeoutObject);
toolbarTimeoutObject = null; toolbarTimeoutObject = null;
if (true !== force && if (force !== true &&
(Toolbar.isHovered() (Toolbar.isHovered()
|| SideContainerToggler.isVisible())) { || SideContainerToggler.isVisible())) {
toolbarTimeoutObject = setTimeout(hideToolbar, toolbarTimeout); toolbarTimeoutObject = setTimeout(hideToolbar, toolbarTimeout);