Some minor cleanup of the last commit.

This commit is contained in:
jeresig 2010-09-27 10:21:50 -04:00
parent 97d468fbf0
commit d558e9eb6f
2 changed files with 4 additions and 5 deletions

View file

@ -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