Global found in dataAttr function

1.7/enhancement_8685
timmywil 2011-05-06 14:54:47 -04:00
parent c72b0f3256
commit c864455ccf
1 changed files with 1 additions and 1 deletions

View File

@ -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 );