Skip to content
Permalink
Browse files

Menu: Added check for the disabled option on create.

  • Loading branch information
kborchers committed Jan 22, 2012
1 parent 6800e1a commit 8c5c6e0a32a1e87cab575cbb265873fccbd416df
Showing with 3 additions and 0 deletions.
  1. +3 −0 ui/jquery.ui.menu.js
@@ -45,6 +45,9 @@ $.widget( "ui.menu", {
event.preventDefault();
}
}, this));
if ( this.options.disabled ) {
this.element.addClass( "ui-state-disabled" );
}
this._bind({
// Prevent focus from sticking to links inside menu after clicking
// them (focus should always stay on UL during navigation).

0 comments on commit 8c5c6e0

Please sign in to comment.
You can’t perform that action at this time.