From 62bd7e6817a39fcca21abd62f92d787fab210c03 Mon Sep 17 00:00:00 2001 From: John Resig Date: Fri, 19 Dec 2008 06:49:03 +0000 Subject: [PATCH] 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). --- src/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.js b/src/core.js index c625d85..685ca2b 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 -- 1.7.10.4