fix(ToolbarToggler): remove Yoda condition
Is not very readable and is not used across the project
This commit is contained in:
parent
f7bfe8d8bf
commit
ecfc56461e
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue