>
>
> Use delete history[index];
>
>
If you're trying to remove elements from a history array (not an object),
you probably want history.splice(index,1), or your indexes are going to be
all out of whack.

Using "splice" will cause your history array to have a length of "n-1"
(which is what you're probably after), whereas the delete will cause the
array to have length "n" with an "undefined" value at your index.

If history is an object, then the delete will work fine.
-- 
Jerod Venema
Frozen Mountain Software
http://www.frozenmountain.com/
919-368-5105

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to