Adding DOM Mutation listeners to different DOMs correspoding to each open tab in Firefox.
stony_dreams <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Message-ID | <[email protected]> |
Hello:
I have written DOM Mutation event handlers for the loaded DOM in a
particular tab as follows:
content.document.addEventListener("DOMNodeInserted", domNodeInserted,
false);
I called this line, everytime a new Tab was opened for its particular DOM,
but all of this have the same event handler function.
The problem is, when I try to call the removeEventListener for this event, I
don't know which event listener gets removed, as there is one corresponding
to each DOM... So even after calling the removeEventListener, my mutation
handler gets fired!
I tried calling the content.document.removeEventListener for the active tab,
but doesn't help...
Any hints as to whats goin wrong here?
Thanks...
--
View this message in context: http://www.nabble.com/Adding-DOM-Mutation-listeners-to-different-DOMs-correspoding-to-each-open-tab-in-Firefox.-tp15091955p15091955.html
Sent from the Mozilla - DOM mailing list archive at Nabble.com.