aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.accordion.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2010-04-27 19:41:10 -0700
committerScott González <scott.gonzalez@gmail.com>2010-04-27 19:41:10 -0700
commit0aa4c7f9b6bc13791197b1486afdad02693e5dee (patch)
tree4c3cef8cda59c8f7062bc22bc36c25df3f55f146 /ui/jquery.ui.accordion.js
parent670ab819a9a6388393e2c1a73c1eaf7095bdc6e0 (diff)
downloadjquery-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.js4
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'); })