aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2008-12-19 06:49:03 +0000
committerJohn Resig <jeresig@gmail.com>2008-12-19 06:49:03 +0000
commit62bd7e6817a39fcca21abd62f92d787fab210c03 (patch)
tree279b2a9a668223e093d5fa056dfa5397d0ec1756
parent46ee77bcc3be1c84e95b510ca8a0ce1e19e8ea12 (diff)
downloadjquery-62bd7e6817a39fcca21abd62f92d787fab210c03.tar.gz
jquery-62bd7e6817a39fcca21abd62f92d787fab210c03.zip
Fixed an issue with how .data() was expecting output (trigger now returns exact output - or null if none is provided, which was tripping it up).
-rw-r--r--src/core.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.js b/src/core.js
index c625d8571..685ca2b73 100644
--- a/src/core.js
+++ b/src/core.js
@@ -482,7 +482,7 @@ jQuery.fn = jQuery.prototype = {
if ( data === undefined && this.length )
data = jQuery.data( this[0], key );
- return data === undefined && parts[1] ?
+ return data == null && parts[1] ?
this.data( parts[0] ) :
data;
} else