Hi MochiKit'ers

I have some anchors with this function connected to their onclicks:

function doToggles()
{  if( this.toggles )
   {  for( var c = 0; c < this.toggles.length; c++ )
      {  MochiKit.Visual.toggle( this.toggles[c] );  }
   }
}

When clicked only the first element in this.toggles switches visibility.

If I reverse the loop only the last element in this.toggles switches.

Logging shows that this.toggles contains all the right elements and toggle is
called on each of them.  Happens in IE & FF on Windows and Linux-FF.

Is this loop too fast for Visual.toggle?  Any pointers?

Regards,
--Dean - Unscrambler of eggs
--
Take your time, take your chances
[3278.7 km, 273.4] Apparent Rennerian
------------------------------------------------------------------------------
It matters not how strait the gate / How charged with punishment the scroll
I am the master of my fate / I am the captain of my soul.    -- Invictus --
                                                        -- William E Henley --

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