]> source.dussan.org Git - jquery.git/commitdiff
Fixes acceptData defining in the global scope. 34/head
authorrwldrn <waldron.rick@gmail.com>
Tue, 5 Oct 2010 14:32:57 +0000 (10:32 -0400)
committerrwldrn <waldron.rick@gmail.com>
Tue, 5 Oct 2010 14:32:57 +0000 (10:32 -0400)
src/data.js

index 66d24c42ae9c5d8fd432a590e4163263b3944a23..732e9233b8a18131ecdbc77f68908524e6bee88b 100644 (file)
@@ -121,7 +121,7 @@ jQuery.extend({
        // A method for determining if a DOM node can handle the data expando
        acceptData: function( elem ) {
                if ( elem.nodeName ) {
-                       match = jQuery.noData[ elem.nodeName.toLowerCase() ];
+                       var match = jQuery.noData[ elem.nodeName.toLowerCase() ];
 
                        if ( match ) {
                                return !(match === true || elem.getAttribute("classid") !== match);