mirror of
https://github.com/jquery/jquery.git
synced 2026-01-24 23:38:05 -05:00
Global found in dataAttr function
This commit is contained in:
@@ -284,7 +284,7 @@ function dataAttr( elem, key, data ) {
|
||||
// If nothing was found internally, try to fetch any
|
||||
// data from the HTML5 data-* attribute
|
||||
if ( data === undefined && elem.nodeType === 1 ) {
|
||||
name = "data-" + key.replace( rmultiDash, "$1-$2" ).toLowerCase();
|
||||
var name = "data-" + key.replace( rmultiDash, "$1-$2" ).toLowerCase();
|
||||
|
||||
data = elem.getAttribute( name );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user