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