I am trying to get the tree labels to be editable on double-click.
In the process I discovered there is one thing (at least!) I am
1. I am adding a double-click listener with:
editable.dbl_click, editable, true);
(I am using Dav Glass editable.js)
2. When a tree branch is expanded, then collapsed and the innerHTML
for that tree branch gets wiped out and recreated, does that wipe
out the event listeners? Do I have to keep reattaching the event
listeners each time the branch is expanded? And, if not, what is the
magic that keeps the event listeners connected to the node even
though the innerHTML is wiped out?
Additional question: how do I figure out which events an element is
listening to with Firebug (or any other tool)?
Thanks in advance!