Because non-native javascript functions have an implicit tostring method.
I'd ask the question the other way 'round. Is there a use case for (not )?wanting to pass a function to the server? In other words, why are you passing functions to toQueryString in the first place? TAG On May 2, 2007, at 1:11 PM, jpjoyal wrote: > > Why function stored in a Hash are serialized by toQueryString. I mean > what's the use-case for this? to eval them on server-side ? > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
