Hi all,
I have a scenario where I would like to be able to defer execution of events that are attached to an element, in such a way that I would like to be able to ensure that all events on another element (a child element (in respect of the first element) and their children - and so on) are fired after all of the events for the pareent elements have been executed.
Put another way, I want to execute all of the events bound to some parent element before I go away and execute events on children and the children's children etc...
I am hoping to leverage a queue whereby, knowing the element I am starting the chain of events off with , I add all of the nested events to the queue, building up the queue and then executing the events off of the queue (utilising a queue to preserve the order of events)
Is this possible in JQuery. I might need to rejig the question if its causing confusion...
Is this possible?