I'm trying to remove all objects and object references from myArray.
But code below brakes before  last iteration - myArray contains still
one element.

myArray.each( function(content, index) {
    delete content; myArray.splice(index,1);
});

Is there any solution, how I can decrease this array inside #each ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to