Skip to content

Commit 9bb1118

Browse files
author
Ihor Melnychenko
committed
MAGETWO-32234: Subcategories in menu are shown instantly when user moves mouse quickly
- Added delay config and fix
1 parent 5804736 commit 9bb1118

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/web/mage/menu.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -349,11 +349,11 @@ define([
349349
}, 300);
350350
}
351351
},
352-
_delay: function( handler, delay ) {
352+
_delay: function(handler, delay) {
353353
var instance = this,
354354
handlerProxy = function () {
355-
return ( typeof handler === "string" ? instance[ handler ] : handler )
356-
.apply( instance, arguments );
355+
return (typeof handler === "string" ? instance[handler] : handler)
356+
.apply(instance, arguments);
357357
};
358358
return setTimeout( handlerProxy, delay || 0 );
359359
}

0 commit comments

Comments
 (0)