Disable getting values using the .attr() function shortcut until the full implications of which can be explored.

This commit is contained in:
jeresig 2009-12-14 01:15:02 -05:00
parent 5b51cc92fc
commit b4b30cc683

View 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);
}