diff options
author | Brandon Aaron <brandon.aaron@gmail.com> | 2007-06-29 22:05:25 +0000 |
---|---|---|
committer | Brandon Aaron <brandon.aaron@gmail.com> | 2007-06-29 22:05:25 +0000 |
commit | 2e0c87cf234c7d352336435b51f8b3eb012119ca (patch) | |
tree | a3587ccda168455880543c003366e20844030c15 /src/jquery/jquery.js | |
parent | ea98b164387d16fe5c0aeb9fc0b4498f2df8fb02 (diff) | |
download | jquery-2e0c87cf234c7d352336435b51f8b3eb012119ca.tar.gz jquery-2e0c87cf234c7d352336435b51f8b3eb012119ca.zip |
Fix for #1231
Diffstat (limited to 'src/jquery/jquery.js')
-rw-r--r-- | src/jquery/jquery.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index e5e494ade..5940df380 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -1539,7 +1539,7 @@ jQuery.extend({ arg = jQuery.makeArray( div.childNodes ); } - if ( 0 === arg.length && !jQuery(arg).is("form, select") ) + if ( 0 === arg.length && (!jQuery.nodeName(arg, "form") && !jQuery.nodeName(arg, "select")) ) return; if ( arg[0] == undefined || jQuery.nodeName(arg, "form") || arg.options ) |