This is why you don't do commits when you're tired. Fixing bugs from 5980292856.

This commit is contained in:
John Resig 2009-12-07 07:48:15 -08:00
parent afaae84a7a
commit ed93204e10

View file

@ -15,7 +15,7 @@ jQuery.extend({
}, },
data: function( elem, name, data ) { data: function( elem, name, data ) {
if ( jQuery.noData[elem.nodeNode.toLowerCase()] ) { if ( elem.nodeName && jQuery.noData[elem.nodeName.toLowerCase()] ) {
return; return;
} }
@ -55,7 +55,7 @@ jQuery.extend({
}, },
removeData: function( elem, name ) { removeData: function( elem, name ) {
if ( jQuery.noData[elem.nodeNode.toLowerCase()] ) { if ( elem.nodeName && jQuery.noData[elem.nodeName.toLowerCase()] ) {
return; return;
} }