aboutsummaryrefslogtreecommitdiffstats
path: root/src/data.js
diff options
context:
space:
mode:
authorInfinitiesLoop <dareed@microsoft.com>2010-07-20 07:22:25 +0800
committerJohn Resig <jeresig@gmail.com>2010-07-20 10:12:40 +0800
commit2e10af143b7eafb7142524f6534a62aee1910bd1 (patch)
tree38370101d5cda44d10c9528086127da102134ea9 /src/data.js
parent6a0942c9d5bbcc7eb6b953b8d7191b7bbd1e669f (diff)
downloadjquery-2e10af143b7eafb7142524f6534a62aee1910bd1.tar.gz
jquery-2e10af143b7eafb7142524f6534a62aee1910bd1.zip
Ticket #6804. Adds a changeData event.
Diffstat (limited to 'src/data.js')
-rw-r--r--src/data.js1
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 );
});
}
},