Bug Tracker

Opened 9 years ago

Closed 9 years ago

Last modified 6 years ago

#6804 closed feature (fixed)

Added 'changeData' event that fires after data updated via fn.data()

Reported by: dareed Owned by:
Priority: Milestone: 1.4.3
Component: data Version: 1.4.2
Keywords: data setData Cc:
Blocked by: Blocking:

Description

The data linking plugin uses the fact that you can set data on plain objects with the $.fn.data API, and uses the 'setData' event to be notified of changes, so they can be pushed back to the link's source input.

However, the setData event fires before the data has changed, as it seems to be more meant to be an event meant to allow subscribers to customize how the data is stored. This is not ideal semantics for the linking scenario, and there's no elegant workaround. A changeData event would be meant for notification of changes and will help enable general mutation notifications.

Change History (3)

comment:2 Changed 9 years ago by john

Resolution: fixed
Status: newclosed

comment:3 Changed 6 years ago by jqueryapi@…

'changeData' was removed from jQuery. Is there anything similar now?

Note: See TracTickets for help on using tickets.