wucho a écrit : > Hi, CP > Thank you very much. Why can I use any argnames instead of > "transport"? ex.
Surprising question. Because, as with any language, the name you use for your arguments are irrelevant to the calling code. A function's *signature* only cares about the number of parameters, and the types of these parameters. Arguments are like local variables, except that they're initialized by the caller. So their names have no impact whatsoever on the calling code. Your callback is going to get passed the Ajax.Response object explicitly by Prototype's Ajax.Request code. How your callback chose to name this argument is of no impact. -- Christophe Porteneuve aka TDD [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
