]> source.dussan.org Git - jquery-ui.git/commitdiff
Menu: menubar cleanup
authorjzaefferer <joern.zaefferer@gmail.com>
Thu, 17 Mar 2011 10:51:38 +0000 (11:51 +0100)
committerjzaefferer <joern.zaefferer@gmail.com>
Thu, 17 Mar 2011 10:51:38 +0000 (11:51 +0100)
tests/visual/menu/menubar.js

index af431f43bb8e9b21f33ff6412ca17664f0f9547a..63fc34e8445a2f15a7bad6a6599b5c5c73ca5cb0 100644 (file)
@@ -18,6 +18,7 @@ $.widget("ui.menubar", {
                                
                this.element.addClass('ui-menubar ui-widget-header ui-helper-clearfix');
                this._focusable(items);
+               this._hoverable(items);
                items.next("ul").each(function(i, elm) {
                        $(elm).menu({
                                select: function(event, ui) {
@@ -63,7 +64,6 @@ $.widget("ui.menubar", {
                        })
                        .addClass("ui-button ui-widget ui-button-text-only ui-menubar-link")
                        .wrapInner("<span class='ui-button-text'></span>");
-                       self._hoverable(input)
                        
                        if (o.menuIcon) {
                                input.addClass("ui-state-default").append("<span class='ui-button-icon-secondary ui-icon ui-icon-triangle-1-s'></span>");