Bug Tracker

Modify

Ticket #6300 (closed feature: patchwelcome)

Opened 3 years ago

Last modified 3 years ago

add mutation events

Reported by: nathansobo Owned by:
Priority: undecided Milestone:
Component: event Version: 1.4.2
Keywords: Cc:
Blocking: Blocked by:

Description

It would be very nice to be alerted whenever an element is appended to another element. This is different from the .live functionality, in that you could execute arbitrary code in response to an element being appended, not just attach an event handler. I need to perform dynamic resizing on elements once they are attached to the DOM, and this would make it very clean to implement.

Change History

comment:1 Changed 3 years ago by snover

  • Milestone 1.4.3 deleted

Resetting milestone to future.

comment:2 Changed 3 years ago by snover

  • Priority set to undecided
  • Status changed from new to closed
  • Resolution set to patchwelcome
  • Summary changed from onAppend event handler to add mutation events

Adding mutation events are likely to significantly impact the overall speed of the library, so you are probably better off using a plugin like liveQuery if you really, really need them. If you want to submit a patch, and it doesn’t cause a serious performance hit, we will investigate it for inclusion.

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.