diff options
author | jeresig <jeresig@gmail.com> | 2010-02-26 12:35:04 -0500 |
---|---|---|
committer | jeresig <jeresig@gmail.com> | 2010-02-26 12:35:04 -0500 |
commit | 9e06903a99caf5619d0db858ed3d24f0e6ee15db (patch) | |
tree | 1f13049752aca90b62b461310840b1bedbe3fae2 /src | |
parent | 7f5179b65431b77e89fa32623a5000e3630c191c (diff) | |
download | jquery-9e06903a99caf5619d0db858ed3d24f0e6ee15db.tar.gz jquery-9e06903a99caf5619d0db858ed3d24f0e6ee15db.zip |
Make sure that undefined is always returned for undefined data properties. Fixes #6166.
Diffstat (limited to 'src')
-rw-r--r-- | src/data.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/data.js b/src/data.js index b9986f58d..a97ac0419 100644 --- a/src/data.js +++ b/src/data.js @@ -25,7 +25,7 @@ jQuery.extend({ var id = elem[ expando ], cache = jQuery.cache, thisCache; if ( !id && typeof name === "string" && data === undefined ) { - return null; + return; } // Compute a unique ID for the element |