diff options
author | jzaefferer <joern.zaefferer@gmail.com> | 2010-06-18 11:16:10 +0200 |
---|---|---|
committer | jzaefferer <joern.zaefferer@gmail.com> | 2010-06-18 11:16:10 +0200 |
commit | 9ac357813f9164c926b8533a16cc163d3cbf0693 (patch) | |
tree | f1946aa9469bd86c5a87c56760d08482a7f31dd3 | |
parent | b376fa8dda91aefb50c7a5a7d9ab8dace9eccd0d (diff) | |
download | jquery-ui-9ac357813f9164c926b8533a16cc163d3cbf0693.tar.gz jquery-ui-9ac357813f9164c926b8533a16cc163d3cbf0693.zip |
Menu: Fixes for destroy method completeness
-rw-r--r-- | ui/jquery.ui.menu.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ui/jquery.ui.menu.js b/ui/jquery.ui.menu.js index e761549e1..0a8b64171 100644 --- a/ui/jquery.ui.menu.js +++ b/ui/jquery.ui.menu.js @@ -22,7 +22,7 @@ $.widget("ui.menu", { role: "listbox", "aria-activedescendant": "ui-active-menuitem" }) - .click(function( event ) { + .bind("click.menu", function( event ) { if (self.options.disabled) { return false; } @@ -36,7 +36,7 @@ $.widget("ui.menu", { this.refresh(); 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) { if (self.options.disabled) { @@ -77,7 +77,7 @@ $.widget("ui.menu", { this.element .removeClass("ui-menu ui-widget ui-widget-content ui-corner-all") - .removeAttr("tabindex") + .removeAttr("tabIndex") .removeAttr("role") .removeAttr("aria-activedescendant"); @@ -86,7 +86,7 @@ $.widget("ui.menu", { .removeAttr("role") .children("a") .removeClass("ui-corner-all") - .removeAttr("tabindex") + .removeAttr("tabIndex") .unbind(".menu"); }, @@ -100,7 +100,7 @@ $.widget("ui.menu", { items.children("a") .addClass("ui-corner-all") - .attr("tabindex", -1) + .attr("tabIndex", -1) // mouseenter doesn't work with event delegation .bind("mouseenter.menu", function( event ) { if (self.options.disabled) { |