Open praxiq opened 6 years ago
Interesting. How would it behave in case of multiple .first
, .second
elements? With single element like this document.arrive('.elem', function() {})
it keeps on firing whenever an element is added to DOM.
I wanted this too, but that's a good point @uzairfarooq! I guess at least in an initial implementation, it would only ever fire once? Might be a bit unclear though...
Is there any way to achieve this? currently looking for exactly this too
I'm writing code that should run when two specific elements both exist. They could be created in any order. I'd like to do something like this:
or perhaps this:
Any interest in adding this sort of thing, or is there a straightforward workaround?