On Mar 5, 5:38 pm, kangax <[EMAIL PROTECTED]> wrote: > > The problem is that the toString() operation called on an object of > > type Function returns the literal string source of the function. > > Unless we redefine it (which is what the previous example is about)
Hmmmm, there's something to ponder... although the thought of overriding it globally makes me wonder what might break as a result of doing so... with my luck, the answer would be "lotsa stuff". :) > > I'm not sure that I see where checking the type is limiting - if it is > > a function, apply it with the current object; if it is not send it > > through the usual interpretation. > > I guess it's just a matter of taste : ) I'll buy that... I'm no JavaScript (much less Prototype) expert, so I was concerned that I might be missing something fundamental where manipulating objects was concerned. Gracias, G --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
