Skip to content
Permalink
Browse files
Disable getting values using the .attr() function shortcut until the …
…full implications of which can be explored.
  • Loading branch information
jeresig committed Dec 14, 2009
1 parent 5b51cc9 commit b4b30cc
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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);
}

0 comments on commit b4b30cc

Please sign in to comment.