This commit is contained in:
Zixaphir 2015-01-20 15:36:12 -07:00
parent 190e1dd5b9
commit 310c5933ae
3 changed files with 5 additions and 11 deletions

View File

@ -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) {

View File

@ -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) {

View File

@ -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...]