]> source.dussan.org Git - jquery.git/commitdiff
This is why you don't do commits when you're tired. Fixing bugs from 59802928566b6be3...
authorJohn Resig <jeresig@gmail.com>
Mon, 7 Dec 2009 15:48:15 +0000 (07:48 -0800)
committerJohn Resig <jeresig@gmail.com>
Mon, 7 Dec 2009 15:48:15 +0000 (07:48 -0800)
src/data.js

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