Rename variable for clarity (#2801)

pull/2804/head
XhmikosR 2020-06-05 16:49:56 +03:00 committed by GitHub
parent 4a31f9986b
commit 39e9416f8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -135,10 +135,10 @@ class ControlSidebar {
$(window).scroll(() => {
const $body = $('body')
const shouldClose = $body.hasClass(ClassName.CONTROL_SIDEBAR_OPEN) ||
const shouldFixHeight = $body.hasClass(ClassName.CONTROL_SIDEBAR_OPEN) ||
$body.hasClass(ClassName.CONTROL_SIDEBAR_SLIDE)
if (shouldClose) {
if (shouldFixHeight) {
this._fixScrollHeight()
}
})