aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-01-13 14:42:35 -0500
committerScott González <scott.gonzalez@gmail.com>2011-01-13 14:42:35 -0500
commit468c35877aa7db472ae191617e32069a0e656ec7 (patch)
tree19d9fe229b6994c39be671cb6e74dfd7138e066f /tests
parent3c11cd3051b463c4e18b5b5af1d0cac7f65c0537 (diff)
downloadjquery-ui-468c35877aa7db472ae191617e32069a0e656ec7.tar.gz
jquery-ui-468c35877aa7db472ae191617e32069a0e656ec7.zip
Accordion: Moved handling for programmatically collapsing the accordion out of the event handler. Modified event handler to not change the active option until after it determines that the event is valid.
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/accordion/accordion_events.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/accordion/accordion_events.js b/tests/unit/accordion/accordion_events.js
index 5793e46d0..4798f7404 100644
--- a/tests/unit/accordion/accordion_events.js
+++ b/tests/unit/accordion/accordion_events.js
@@ -24,7 +24,7 @@ test("accordionchange event, open closed and close again", function() {
equals( ui.newHeader.size(), 0 );
equals( ui.newContent.size(), 0 );
})
- .accordion("option", "active", 0);
+ .accordion("option", "active", false);
});
})(jQuery);