mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Menu: Fixes for destroy method completeness
This commit is contained in:
parent
b376fa8dda
commit
9ac357813f
10
ui/jquery.ui.menu.js
vendored
10
ui/jquery.ui.menu.js
vendored
@ -22,7 +22,7 @@ $.widget("ui.menu", {
|
|||||||
role: "listbox",
|
role: "listbox",
|
||||||
"aria-activedescendant": "ui-active-menuitem"
|
"aria-activedescendant": "ui-active-menuitem"
|
||||||
})
|
})
|
||||||
.click(function( event ) {
|
.bind("click.menu", function( event ) {
|
||||||
if (self.options.disabled) {
|
if (self.options.disabled) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -36,7 +36,7 @@ $.widget("ui.menu", {
|
|||||||
this.refresh();
|
this.refresh();
|
||||||
|
|
||||||
if (!this.options.input) {
|
if (!this.options.input) {
|
||||||
this.options.input = this.element.attr("tabindex", 0);
|
this.options.input = this.element.attr("tabIndex", 0);
|
||||||
}
|
}
|
||||||
this.options.input.bind("keydown.menu", function(event) {
|
this.options.input.bind("keydown.menu", function(event) {
|
||||||
if (self.options.disabled) {
|
if (self.options.disabled) {
|
||||||
@ -77,7 +77,7 @@ $.widget("ui.menu", {
|
|||||||
|
|
||||||
this.element
|
this.element
|
||||||
.removeClass("ui-menu ui-widget ui-widget-content ui-corner-all")
|
.removeClass("ui-menu ui-widget ui-widget-content ui-corner-all")
|
||||||
.removeAttr("tabindex")
|
.removeAttr("tabIndex")
|
||||||
.removeAttr("role")
|
.removeAttr("role")
|
||||||
.removeAttr("aria-activedescendant");
|
.removeAttr("aria-activedescendant");
|
||||||
|
|
||||||
@ -86,7 +86,7 @@ $.widget("ui.menu", {
|
|||||||
.removeAttr("role")
|
.removeAttr("role")
|
||||||
.children("a")
|
.children("a")
|
||||||
.removeClass("ui-corner-all")
|
.removeClass("ui-corner-all")
|
||||||
.removeAttr("tabindex")
|
.removeAttr("tabIndex")
|
||||||
.unbind(".menu");
|
.unbind(".menu");
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -100,7 +100,7 @@ $.widget("ui.menu", {
|
|||||||
|
|
||||||
items.children("a")
|
items.children("a")
|
||||||
.addClass("ui-corner-all")
|
.addClass("ui-corner-all")
|
||||||
.attr("tabindex", -1)
|
.attr("tabIndex", -1)
|
||||||
// mouseenter doesn't work with event delegation
|
// mouseenter doesn't work with event delegation
|
||||||
.bind("mouseenter.menu", function( event ) {
|
.bind("mouseenter.menu", function( event ) {
|
||||||
if (self.options.disabled) {
|
if (self.options.disabled) {
|
||||||
|
Loading…
Reference in New Issue
Block a user