Skip to main content

Bug Tracker

Side navigation

#6804 closed feature (fixed)

Opened July 19, 2010 11:23PM UTC

Closed July 20, 2010 02:13AM UTC

Last modified July 17, 2013 10:13PM UTC

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.

Attachments (0)
Change History (3)

Changed July 19, 2010 11:42PM UTC by dareed comment:1

Changed July 20, 2010 02:13AM UTC by john comment:2

resolution: → fixed
status: newclosed

Changed July 17, 2013 10:13PM UTC by jqueryapi@fluidolabs.com comment:3

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