aboutsummaryrefslogtreecommitdiffstats
path: root/src/attributes.js
diff options
context:
space:
mode:
authorjeresig <jeresig@gmail.com>2010-09-27 10:21:50 -0400
committerjeresig <jeresig@gmail.com>2010-09-27 10:21:50 -0400
commitd558e9eb6f44783bb06666617c758408daf53e3d (patch)
treeb66730fb06c6c2639ff58b226deaf5e38725277b /src/attributes.js
parent97d468fbf0f840f52c91855b0bc8db0ed6ac403c (diff)
downloadjquery-d558e9eb6f44783bb06666617c758408daf53e3d.tar.gz
jquery-d558e9eb6f44783bb06666617c758408daf53e3d.zip
Some minor cleanup of the last commit.
Diffstat (limited to 'src/attributes.js')
-rw-r--r--src/attributes.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/attributes.js b/src/attributes.js
index dd6a3e7ab..cb9f2cf5e 100644
--- a/src/attributes.js
+++ b/src/attributes.js
@@ -164,7 +164,7 @@ jQuery.fn.extend({
var option = options[ i ];
// Don't return options that are disabled or in a disabled optgroup
- if ( option.selected && (jQuery.support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null ) &&
+ if ( option.selected && (jQuery.support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null) &&
(!option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" )) ) {
// Get the specific value for the option