]> source.dussan.org Git - jquery-ui.git/commitdiff
accordion: navigation option wasn't working (fixes #3944)
authorPaul Bakaus <paul.bakaus@googlemail.com>
Mon, 26 Jan 2009 12:11:56 +0000 (12:11 +0000)
committerPaul Bakaus <paul.bakaus@googlemail.com>
Mon, 26 Jan 2009 12:11:56 +0000 (12:11 +0000)
ui/ui.accordion.js

index 0335f22d10e0396e19bb69819da50bcee09e328a..77226fb8a5c0c32e88bbb0a0dd7e784d5885f47f 100644 (file)
@@ -22,7 +22,7 @@ $.widget("ui.accordion", {
                if ( o.navigation ) {
                        var current = this.element.find("a").filter(o.navigationFilter);
                        if ( current.length ) {
-                               if ( current.filter(options.header).length ) {
+                               if ( current.filter(o.header).length ) {
                                        this.active = current;
                                } else {
                                        this.active = current.parent().parent().prev();