]> source.dussan.org Git - jquery-ui.git/commitdiff
Removed case-sensitive .nodeName check.
authorScott González <scott.gonzalez@gmail.com>
Wed, 28 Apr 2010 02:41:10 +0000 (19:41 -0700)
committerScott González <scott.gonzalez@gmail.com>
Wed, 28 Apr 2010 02:41:10 +0000 (19:41 -0700)
Fixes #5557 - Comparing element.nodeName directly against upper case tag names can cause problems.

ui/jquery.ui.accordion.js

index 0ac478b739c5a226954ef65306a99cc3c8d531ff..1a8825dacdf62f4b3bca05e5c98796a39100b8e0 100644 (file)
@@ -40,9 +40,7 @@ $.widget("ui.accordion", {
                this.element.addClass("ui-accordion ui-widget ui-helper-reset");
                
                // in lack of child-selectors in CSS we need to mark top-LIs in a UL-accordion for some IE-fix
-               if (this.element[0].nodeName == "UL") {
-                       this.element.children("li").addClass("ui-accordion-li-fix");
-               }
+               this.element.children("li").addClass("ui-accordion-li-fix");
 
                this.headers = this.element.find(o.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all")
                        .bind("mouseenter.accordion", function(){ $(this).addClass('ui-state-hover'); })