Commit 62bd7e68 authored by John Resig's avatar John Resig

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

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).
parent 46ee77bc
...@@ -482,7 +482,7 @@ jQuery.fn = jQuery.prototype = { ...@@ -482,7 +482,7 @@ jQuery.fn = jQuery.prototype = {
if ( data === undefined && this.length ) if ( data === undefined && this.length )
data = jQuery.data( this[0], key ); data = jQuery.data( this[0], key );
return data === undefined && parts[1] ? return data == null && parts[1] ?
this.data( parts[0] ) : this.data( parts[0] ) :
data; data;
} else } else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment