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.
2 parents 32aa8e6 + 9ab7471 commit e314dfcCopy full SHA for e314dfc
lib/web/mage/menu.js
@@ -379,7 +379,13 @@ define([
379
}
380
},
381
_delay: function(handler, delay) {
382
- this._super(handler, delay);
+ var instance = this,
383
+ handlerProxy = function () {
384
+ return (typeof handler === "string" ? instance[handler] : handler)
385
+ .apply(instance, arguments);
386
+ };
387
+
388
+ return setTimeout(handlerProxy, delay || 0);
389
390
});
391
0 commit comments