Skip to content

Commit d5def90

Browse files
committed
refactor(Sidebar): remove unused imports; remove duplicated functions
1 parent e3db84b commit d5def90

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

js/src/sidebar.js

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,9 @@
77

88
import {
99
defineJQueryPlugin,
10-
emulateTransitionEnd,
11-
getTransitionDurationFromElement,
1210
reflow,
1311
typeCheckConfig
1412
} from './util/index'
15-
import Data from './dom/data'
1613
import EventHandler from './dom/event-handler'
1714
import Manipulator from './dom/manipulator'
1815
import BaseComponent from './base-component'
@@ -108,17 +105,6 @@ class Sidebar extends BaseComponent {
108105
this._showBackdrop()
109106
}
110107

111-
this._queueCallback(() => {
112-
if (this._isVisible() === true) {
113-
this._show = true
114-
if (this._isMobile() || this._isOverlaid()) {
115-
this._addClickOutListener()
116-
}
117-
118-
EventHandler.trigger(this._element, EVENT_SHOWN)
119-
}
120-
})
121-
122108
const complete = () => {
123109
if (this._isVisible() === true) {
124110
this._show = true

0 commit comments

Comments
 (0)