fixed sidebar collapse bug after autoCollapse feature

This commit is contained in:
REJack
2019-06-10 17:39:15 +02:00
parent 9b03b865ad
commit b8ffeb2d5d
5 changed files with 5 additions and 6 deletions

View File

@@ -81,7 +81,6 @@ const PushMenu = (($) => {
} else {
return $(Selector.BODY).hasClass(ClassName.OPEN)
}
}
toggle() {
@@ -140,7 +139,7 @@ const PushMenu = (($) => {
$(this).data(DATA_KEY, data)
}
if (operation === 'init') {
if (operation === 'toggle') {
data[operation]()
}
})