mirror of
https://github.com/jquery/jquery.git
synced 2026-01-24 13:38:27 -05:00
Fixes acceptData defining in the global scope.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user