Skip to content
Browse files

Fixed an issue with how .data() was expecting output (trigger now ret…

…urns exact output - or null if none is provided, which was tripping it up).
  • Loading branch information...
1 parent 46ee77b commit 62bd7e6817a39fcca21abd62f92d787fab210c03 @jeresig jeresig committed Dec 19, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core.js
View
2 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

0 comments on commit 62bd7e6

Please sign in to comment.
Something went wrong with that request. Please try again.