On 10/17/06, Warren <[EMAIL PROTECTED]> wrote:
>
> I created a menu that pops up a certain target is clicked. The menu
> remains visible until the user clicks a selection from the menu, or
> moves the mouse away from the menu - implimented with onmouseleave. It
> works swimmingly - almost. I messed with it for a long time because I
> was so happy to see it work. (I love Mochikit.Signal - great job Bob!)
> Then I happened to do something just right to make it break. If I move
> the mouse pointer down off the bottom of the div - I can occasionally
> get this error:

The thanks for Signal should really go to Jonathan and Beau... I
didn't do much of it.

> node.tagName has no properties  -  DOM.js (line 343)
>
> That's right. I said Occasionally. It behaves differently on different
> runs. Sometimes it works. Sometimes it errors. That is making it very
> hard for me to debug. The menu is a div with each menu item being a div
> nested inside it. The outer div has the onleave signal set to hide the
> menu. Each menu element has an onclick signal set to make the
> selection, then hide.

That error means node is null or undefined. There really isn't any way
to tell what causes this condition without more information, but the
error almost definitely is not in MochiKit.Signal.

-bob

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to