Bug Tracker

Opened 12 years ago

Closed 12 years ago

#8149 closed bug (wontfix)

changeData event should fired on properties that are changed when calling .data(object)

Reported by: thetimbanks Owned by:
Priority: low Milestone: 1.next
Component: data Version: git
Keywords: Cc:
Blocked by: Blocking:


When calling .data(key, value) a changeData event is fired on the "key" property. However, when calling .data(object), changeData does not get fired for any property inside of object.

This can be very useful when using datalink. View the associated jsFiddle below to get an idea of how this can be beneficial.


Change History (2)

comment:1 Changed 12 years ago by jitter

Component: unfileddata
Keywords: needsreview added
Priority: undecidedlow
Version: 1.4.4git

comment:2 Changed 12 years ago by dmethvin

Keywords: needsreview removed
Resolution: wontfix
Status: newclosed

This would be very expensive. You can either duck-punch .data() to add it, or create your own function that calls .data() internally.

Note: See TracTickets for help on using tickets.