aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authortimmywil <tim.willison@thisismedium.com>2011-05-06 14:54:47 -0400
committertimmywil <tim.willison@thisismedium.com>2011-05-06 14:54:47 -0400
commitc864455ccfad13895d2af6ba287f265ee64bd348 (patch)
tree93ec7a198bf62c4984db5e0bd598a3ca18bac8a7 /src
parentc72b0f3256672424a193040509ed63c755c805a2 (diff)
downloadjquery-c864455ccfad13895d2af6ba287f265ee64bd348.tar.gz
jquery-c864455ccfad13895d2af6ba287f265ee64bd348.zip
Global found in dataAttr function
Diffstat (limited to 'src')
-rw-r--r--src/data.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/data.js b/src/data.js
index c2fd558f0..9e5d1ab0b 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 );