From 5f9ffb28d33588ce006d980dfb07680c5d12f7d5 Mon Sep 17 00:00:00 2001 From: David Bolter Date: Mon, 22 Sep 2008 18:21:38 +0000 Subject: Accept boolean values for aria state. (Thanks for catch Scott González) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/ui.core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui') diff --git a/ui/ui.core.js b/ui/ui.core.js index be0caa920..1ac19b7ff 100644 --- a/ui/ui.core.js +++ b/ui/ui.core.js @@ -454,7 +454,7 @@ $.fn.extend({ ariaState : function(state, value) { // setter? - if (value) + if (value !== undefined) return this.each(function(i, el) { isFF2? el.setAttributeNS("http://www.w3.org/2005/07/aaa", "aaa:" + state, value) : $(el).attr("aria-" + state, value); -- cgit v1.2.3