Couple of thoughts I had today whilst working on a project

1) If you have an enumerable, such as is returned from $$, how do you access
the 'nth' element without the use of a closure & $break?
    Is a 'at' or 'nth' function something that would get used? In my
scenario, I got a bunch of items and I wanted the first one, which is simple
enough, but if you wanted the last one, or the one in the middle?
I guess enumerable.entries()[0] or enumerable.entries()[enumerable.size()-1]
would do the trick for first & last...

2) I was using the eulerian tech datepicker and wondering why it wasnt
working. I realised that because I wasn't loading the date-picker when the
page loaded (as a lot of ajax style apps do) that the hook for
dom:oncontentloaded (previously window.load) wasn't fired, as it got
observed *after* the event had occurred.
What are your guys thoughts on storing this event has occured and any
observers added to these events after the event has fired would fire
immediately? Would it cause too many problems?

Thoughts, criticisms et al welcome & encouraged.

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