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 b4b30cc6837dc5480f3d1a3da0cb9fe12dfc9b72
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/attributes.js
@@ -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.
You can’t perform that action at this time.