I find using the object is easier to read, also looking at the source its really meant for objects to be used, you got lucky in that object['days'] is also the same syntax used by array[0]. That is why indexes would work for your array and not for the object and why the property 'days' would work for the object and not the array.
I don't think the documentation should support improper usage. I would classify using an array instead of an object as hacky implementation. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype: Core" 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/prototype-core?hl=en -~----------~----~----~----~------~----~------~--~---
