By setting the parentNode's innerHTML you're removing all of its child
nodes from the document... including mochikitEvent.src(). You can still
access src() because the event object holds a reference to it, but there
isn't much of a point unless you place it back in the document.
Also note that you should disconnectAll() any node to which you have
signals attached when you remove it from the document and discard it to
avoid memory leaks in certain browsers.
--Tom
mwaschkowski wrote:
Hi!
My humble thanks to everyone that has worked on and supported Mochikit.
I have run into something confusing to me, a quick point in the right
direction would be appreciated.
This works fine:
mochikitEvent.src().parentNode.innerHTML = "xxx";
but this just gives me a null:
var p = mochikitEvent.src().parentNode;
logDebug('p=' + p);
I don't understand why updating innerHTML works fine, but then trying
to get a variable reference to the parent node results in null?
Help!
Thanks,
Mark
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---