aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.accordion.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/ui.accordion.js')
-rw-r--r--ui/ui.accordion.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/ui/ui.accordion.js b/ui/ui.accordion.js
index 00a660c0b..c7828cd9d 100644
--- a/ui/ui.accordion.js
+++ b/ui/ui.accordion.js
@@ -180,9 +180,7 @@ function clickHandler(event) {
// due to the event delegation model, we have to check if one
// of the parent elements is our actual header, and find that
if ( clicked.parents(options.header).length ) {
- while ( !clicked.is(options.header) ) {
- clicked = clicked.parent();
- }
+ clicked = clicked.parents(options.header + ":first");
}
var clickedActive = clicked[0] == options.active[0];