Ticket #6804. Adds a changeData event.

This commit is contained in:
InfinitiesLoop 2010-07-20 07:22:25 +08:00 committed by John Resig
parent 6a0942c9d5
commit 2e10af143b
2 changed files with 21 additions and 5 deletions

View file

@ -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 );
});
}
},