diff options
author | InfinitiesLoop <dareed@microsoft.com> | 2010-07-20 07:22:25 +0800 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2010-07-20 10:12:40 +0800 |
commit | 2e10af143b7eafb7142524f6534a62aee1910bd1 (patch) | |
tree | 38370101d5cda44d10c9528086127da102134ea9 /src/data.js | |
parent | 6a0942c9d5bbcc7eb6b953b8d7191b7bbd1e669f (diff) | |
download | jquery-2e10af143b7eafb7142524f6534a62aee1910bd1.tar.gz jquery-2e10af143b7eafb7142524f6534a62aee1910bd1.zip |
Ticket #6804. Adds a changeData event.
Diffstat (limited to 'src/data.js')
-rw-r--r-- | src/data.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/data.js b/src/data.js index a4c4e4b6d..f7af18d0d 100644 --- a/src/data.js +++ b/src/data.js @@ -129,6 +129,7 @@ jQuery.fn.extend({ } else { return this.trigger("setData" + parts[1] + "!", [parts[0], value]).each(function() { jQuery.data( this, key, value ); + jQuery.event.trigger( "changeData" + parts[1] + "!", [parts[0], value], this ); }); } }, |