We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed8b676 commit d13a8e4Copy full SHA for d13a8e4
lib/web/mage/menu.js
@@ -85,12 +85,10 @@ define([
85
var controls = this.controls,
86
toggle = this.toggle;
87
88
- this._on(controls.toggleBtn, {
89
- 'click': toggle
90
- });
91
- this._on(controls.swipeArea, {
92
- 'swipeleft': toggle
93
+ controls.toggleBtn.off('click');
+ controls.toggleBtn.on('click', toggle.bind(this));
+ controls.swipeArea.off('swipeleft');
+ controls.swipeArea.on('swipeleft', toggle.bind(this));
94
},
95
96
/**
0 commit comments