[Proto-Scripty] Re: Ajax.Request add a toString method

2008-11-08 Thread jaap.taal
Maybe you could describe this feature in some form (could be more generic to other Prototype objects) in the documentation. I'm assuming Object.inspect uses the toString method. I agree with you that debugging features should be stripped, if such a debug version would be created, implementation

[Proto-Scripty] Re: Ajax.Request add a toString method

2008-11-08 Thread Tobie Langel
Best fit for this would be an inspect method. Have a look at the rest of the framework and at Ruby to see how this is generally implemented. Best, Tobie On Nov 8, 4:09 pm, jaap.taal [EMAIL PROTECTED] wrote: On Nov 7, 4:49 pm, kangax [EMAIL PROTECTED] wrote: On Nov 7, 9:08 am, jaap.taal

[Proto-Scripty] Re: Ajax.Request add a toString method

2008-11-07 Thread T.J. Crowder
FWIW, although I think it's a neat idea, I don't think I'd want to see it in Prototype itself. I think it's more of a debugging thing. (Granted Prototype has some other debugging things; I'd like to strip those out of the release version as well...) -- T.J. Crowder tj / crowder software / com

[Proto-Scripty] Re: Ajax.Request add a toString method

2008-11-07 Thread kangax
On Nov 7, 9:08 am, jaap.taal [EMAIL PROTECTED] wrote: I'd like a toString method for an Ajax.Request object that can identify the request for logging purposes. Right now I'm using the following custom code: Ajax.Request.prototype.toString = function() {     if (this.method == 'get') { And