[Prototype-core] Anyone with PDoc working who can test a trivial patch for me?

2009-03-25 Thread T.J. Crowder
Hi folks, Just trying to do a bit of tidying on the source[1], and unfortunately I can't get PDoc working on my system and am a bit pressed for time right now. If you have PDoc working on your system, could you try running it against the patched files on the linked ticket and seeing if it works

[Prototype-core] Re: Thoughts on Namespacing Native APIs

2009-03-25 Thread Robert Kieffer
On Mar 24, 3:32 pm, Tobie Langel tobie.lan...@gmail.com wrote: Unfortunately, a number of environments do not support eval and decompiling function isn't part of any specification to date (nor planned in the near future). Best, Tobie Hey Tobie, those objections are well and good, but they

[Prototype-core] Mapping a function to multiple arrays

2009-03-25 Thread Titi Ala'ilima
With JavaScript 1.6 we have the Array.map method to map a function to each element in an array, and Prototype itself has invoke and pluck. But what if you want to map a function to a set of parallel arrays, where the elements in each array correspond to the arguments of the function? It's a

[Prototype-core] Re: Thoughts on Namespacing Native APIs

2009-03-25 Thread T.J. Crowder
Hi Robert, For background, you might (if you haven't already) want to check out these two threads from this group on this topic: This short one: http://groups.google.com/group/prototype-core/browse_thread/thread/d38f2123aa64eb0e/ac612b72cc060943 And this _rather_ more comprehensive one:

[Prototype-core] Re: Thoughts on Namespacing Native APIs

2009-03-25 Thread Tobie Langel
On Mar 25, 1:32 pm, Robert Kieffer bro...@gmail.com wrote: Hey Tobie, those objections are well and good, but they can be addressed (see below).  I was hoping for feedback at a bit higher level, on the overall idea.  For example, does spinning off the native APIs into a separate library

[Prototype-core] Re: Add JavaScript Lint to build process?

2009-03-25 Thread Jonathan Buhacoff
I'm glad Robert brought up this subject. I asked about this on IRC a while back and the answer was that prototype was hand-crafted, is beautiful the way it is, and that modifying it to pass strict syntax checking would somehow make it slower... I agree that there is some beautiful code in

[Prototype-core] Re: Add JavaScript Lint to build process?

2009-03-25 Thread Jonathan Buhacoff
Just had another thought -- it's possible to satisfy proponents of both strict coding and quick downloads. Given a strictly written program, it's possible to write a transformation to apply all the syntax shortcuts to it and produce an equivalent lean version with minimum whitespace and