]> source.dussan.org Git - jquery-ui.git/commitdiff
Fixed formatting
authorAeron Glemann <aglemann@backcountry.com>
Fri, 10 Aug 2012 22:59:06 +0000 (16:59 -0600)
committerAeron Glemann <aglemann@backcountry.com>
Fri, 10 Aug 2012 22:59:06 +0000 (16:59 -0600)
tests/unit/selectmenu/selectmenu_tickets.js
ui/jquery.ui.selectmenu.js

index 8bf644ea81d3f083d8bf84e17200613dcedfcc24..bddcf69de5498dd2f2beb5155efbecc21171e5fc 100644 (file)
@@ -19,6 +19,7 @@ test('#241 - "focus" doesn\'t bubble', function() {
        ok($('.ui-selectmenu-menu li:eq(1)').hasClass('ui-selectmenu-item-focus'), 'after down arrow press, second item should have focus');
 
     // simulate('keypress') not working consistently in all browsers
+    // this problem but for firefox now: http://bugs.jqueryui.com/ticket/3229
     var e = new $.Event('keypress', { which: 'a'.charCodeAt(0) });
     $('.ui-selectmenu-menu-dropdown').trigger(e);
        ok($('.ui-selectmenu-menu li:eq(2)').hasClass('ui-selectmenu-item-focus'), 'after "a" key press, third item should have focus');
index 809dd211862350ac75cf5a957a767e0c662c7fde..d1618634575749a7ce1092c2f9abecb21388bcbc 100644 (file)
@@ -317,7 +317,7 @@ $.widget("ui.selectmenu", {
                                        thisAAttr[ 'typeahead' ] = selectOptionData[ i ].typeahead;
                                }
                                var thisA = $('<a/>', thisAAttr)
-                                   .bind('focus.selectmenu', function(e) {
+                                       .bind('focus.selectmenu', function() {
                                                $(this).parent().mouseover();
                                        })
                                        .bind('blur.selectmenu', function() {
@@ -343,7 +343,7 @@ $.widget("ui.selectmenu", {
                                        .bind("click.selectmenu", function() {
                                                return false;
                                        })
-                                       .bind('mouseover.selectmenu', function(e) {
+                                       .bind('mouseover.selectmenu', function() {
                                                // no hover if diabled
                                                if (!$(this).hasClass(self.namespace + '-state-disabled') && !$(this).parent("ul").parent("li").hasClass(self.namespace + '-state-disabled')) {
                                                        self._selectedOptionLi().addClass(activeClass);