Fix #827
This commit is contained in:
parent
190e1dd5b9
commit
310c5933ae
@ -6945,8 +6945,7 @@
|
||||
this.insertEntry(entry, menu, data);
|
||||
}
|
||||
$.addClass(lastToggledButton, 'active');
|
||||
$.on(d, 'click', this.close);
|
||||
$.on(d, 'CloseMenu', this.close);
|
||||
$.one(d, 'click scroll CloseMenu', this.close);
|
||||
Rice.nodes(menu);
|
||||
$.add(Header.hover, menu);
|
||||
mRect = menu.getBoundingClientRect();
|
||||
@ -6999,8 +6998,7 @@
|
||||
$.rm(currentMenu);
|
||||
$.rmClass(lastToggledButton, 'active');
|
||||
currentMenu = null;
|
||||
lastToggledButton = null;
|
||||
return $.off(d, 'click CloseMenu', this.close);
|
||||
return lastToggledButton = null;
|
||||
};
|
||||
|
||||
Menu.prototype.findNextEntry = function(entry, direction) {
|
||||
|
||||
@ -6970,8 +6970,7 @@
|
||||
this.insertEntry(entry, menu, data);
|
||||
}
|
||||
$.addClass(lastToggledButton, 'active');
|
||||
$.on(d, 'click', this.close);
|
||||
$.on(d, 'CloseMenu', this.close);
|
||||
$.one(d, 'click scroll CloseMenu', this.close);
|
||||
Rice.nodes(menu);
|
||||
$.add(Header.hover, menu);
|
||||
mRect = menu.getBoundingClientRect();
|
||||
@ -7024,8 +7023,7 @@
|
||||
$.rm(currentMenu);
|
||||
$.rmClass(lastToggledButton, 'active');
|
||||
currentMenu = null;
|
||||
lastToggledButton = null;
|
||||
return $.off(d, 'click CloseMenu', this.close);
|
||||
return lastToggledButton = null;
|
||||
};
|
||||
|
||||
Menu.prototype.findNextEntry = function(entry, direction) {
|
||||
|
||||
@ -60,8 +60,7 @@ UI = do ->
|
||||
|
||||
$.addClass lastToggledButton, 'active'
|
||||
|
||||
$.on d, 'click', @close
|
||||
$.on d, 'CloseMenu', @close
|
||||
$.one d, 'click scroll CloseMenu', @close
|
||||
Rice.nodes menu
|
||||
$.add Header.hover, menu
|
||||
|
||||
@ -117,7 +116,6 @@ UI = do ->
|
||||
$.rmClass lastToggledButton, 'active'
|
||||
currentMenu = null
|
||||
lastToggledButton = null
|
||||
$.off d, 'click CloseMenu', @close
|
||||
|
||||
findNextEntry: (entry, direction) ->
|
||||
entries = [entry.parentNode.children...]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user