Ticket about this is http://dev.jquery.com/ticket/3999.
On Jan 26, 8:10 pm, John Resig <[email protected]> wrote: > We can consider it - you should file an enhancement > bug.http://dev.jquery.com/newticket > > --John > > On Mon, Jan 26, 2009 at 10:14 AM, Robert Katić <[email protected]> wrote: > > > My English is not so good so will be short. > > > I am not sure why the get() function exists. Because it is shorter > > then toArray()? But my code would by more clear with an toArray > > instead, An foo.get(index) is not clearer nor shorter then foo[index] > > for me. > > > In my opinion the "get" function is not really necessary and would by > > deprecated if an more explicit toArray would exists. > > > The implementation of toArray() would be banal: > > > jQuery.fn.toArray = function() { return Array.prototype.slice.apply > > (this, arguments) }; > > > or even: > > > jQuery.fn.toArray = Array.prototype.slice; > > > Thoughts? Am I disregarding something here? > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" 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/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---
