Global found in dataAttr function
This commit is contained in:
parent
c72b0f3256
commit
c864455ccf
|
@ -284,7 +284,7 @@ function dataAttr( elem, key, data ) {
|
||||||
// If nothing was found internally, try to fetch any
|
// If nothing was found internally, try to fetch any
|
||||||
// data from the HTML5 data-* attribute
|
// data from the HTML5 data-* attribute
|
||||||
if ( data === undefined && elem.nodeType === 1 ) {
|
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 );
|
data = elem.getAttribute( name );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue