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 0a60b0d..0b6d21e 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);
                }