From c864455ccfad13895d2af6ba287f265ee64bd348 Mon Sep 17 00:00:00 2001 From: timmywil Date: Fri, 6 May 2011 14:54:47 -0400 Subject: [PATCH] Global found in dataAttr function --- src/data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data.js b/src/data.js index c2fd558f..9e5d1ab0 100644 --- a/src/data.js +++ b/src/data.js @@ -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 );