hasSub = $elem.hasClass(parClass);
if (hasSub) {
- clearTimeout(_this.delay);
- _this.delay = setTimeout(function() {
+ clearTimeout(this.delay);
+ this.delay = setTimeout(function() {
_this._show($elem.children('.is-dropdown-submenu'));
}, _this.options.hoverDelay);
}
if (hasSub && _this.options.autoclose) {
if ($elem.attr('data-is-click') === 'true' && _this.options.clickOpen) { return false; }
- clearTimeout(_this.delay);
- _this.delay = setTimeout(function() {
+ clearTimeout(this.delay);
+ this.delay = setTimeout(function() {
_this._hide($elem);
}, _this.options.closingTime);
}