Skip to content

Commit d13a8e4

Browse files
MAGETWO-91661: Menu in mobile view cannot be closed
- Updated mage.menu events
1 parent ed8b676 commit d13a8e4

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

lib/web/mage/menu.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,10 @@ define([
8585
var controls = this.controls,
8686
toggle = this.toggle;
8787

88-
this._on(controls.toggleBtn, {
89-
'click': toggle
90-
});
91-
this._on(controls.swipeArea, {
92-
'swipeleft': toggle
93-
});
88+
controls.toggleBtn.off('click');
89+
controls.toggleBtn.on('click', toggle.bind(this));
90+
controls.swipeArea.off('swipeleft');
91+
controls.swipeArea.on('swipeleft', toggle.bind(this));
9492
},
9593

9694
/**

0 commit comments

Comments
 (0)