]> source.dussan.org Git - jquery.git/commitdiff
Disable getting values using the .attr() function shortcut until the full implication...
authorjeresig <jeresig@gmail.com>
Mon, 14 Dec 2009 06:15:02 +0000 (01:15 -0500)
committerjeresig <jeresig@gmail.com>
Mon, 14 Dec 2009 06:15:02 +0000 (01:15 -0500)
src/attributes.js

index 0a60b0d74bb41e88def55c26e25209e13dace58b..0b6d21ec16be24b07a15b772cf30448f7499c5e6 100644 (file)
@@ -221,7 +221,7 @@ jQuery.extend({
                        return undefined;
                }
 
-               if ( name in jQuery.attrFn ) {
+               if ( name in jQuery.attrFn && value !== undefined ) {
                        return jQuery(elem)[name](value);
                }