Bug Tracker

Modify

Ticket #8149 (closed bug: wontfix)

Opened 2 years ago

Last modified 2 years ago

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:
Blocking: Blocked by:

Description

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.

 http://jsfiddle.net/yVaMx/1/

Change History

comment:1 Changed 2 years ago by jitter

  • Keywords needsreview added
  • Priority changed from undecided to low
  • Version changed from 1.4.4 to git
  • Component changed from unfiled to data

comment:2 Changed 2 years ago by dmethvin

  • Keywords needsreview removed
  • Status changed from new to closed
  • Resolution set to wontfix

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.