I'm just looking at the source code, but it seems to me that it does check whether or not the element is initially displayed:
<code> MochiKit.Style.getStyle(element, 'display') != 'none' v.PAIRS[effect][1] : v.PAIRS[effect][0] </code> In other words, if the element's "display" style is set to "none", use the "on" version; otherwise, use the "off" version. How are you hiding your element? If it's by using "visibility:hidden" or "opacity:0", or anything besides "display:none", that might explain your problem. Jeremy On Jul 10, 11:40 am, jfagnani <[EMAIL PROTECTED]> wrote: > I'm using toggle to display a drop down menu that's initially hidden. > toggle seems to assume that the element is initially displayed, so it > takes two call for it to show. > > Is there a common workaround for this? Shouldn't toggle check the > display property of the element it's called on? > > Thanks, > Justin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MochiKit" group. To post to this group, send email to mochikit@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---