Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 0948d42

Browse files
committed
Merge remote-tracking branch 'github-magento2ce/MAGETWO-91661' into EPAM-PR-9
2 parents 54556ef + d13a8e4 commit 0948d42

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)