diff options
author | Scott González <scott.gonzalez@gmail.com> | 2010-04-27 19:41:10 -0700 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-04-27 19:41:10 -0700 |
commit | 0aa4c7f9b6bc13791197b1486afdad02693e5dee (patch) | |
tree | 4c3cef8cda59c8f7062bc22bc36c25df3f55f146 /ui/jquery.ui.accordion.js | |
parent | 670ab819a9a6388393e2c1a73c1eaf7095bdc6e0 (diff) | |
download | jquery-ui-0aa4c7f9b6bc13791197b1486afdad02693e5dee.tar.gz jquery-ui-0aa4c7f9b6bc13791197b1486afdad02693e5dee.zip |
Removed case-sensitive .nodeName check.
Fixes #5557 - Comparing element.nodeName directly against upper case tag names can cause problems.
Diffstat (limited to 'ui/jquery.ui.accordion.js')
-rw-r--r-- | ui/jquery.ui.accordion.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ui/jquery.ui.accordion.js b/ui/jquery.ui.accordion.js index 0ac478b73..1a8825dac 100644 --- a/ui/jquery.ui.accordion.js +++ b/ui/jquery.ui.accordion.js @@ -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'); }) |