[Prototype-core] Re: Indiscriminate use of breaking into words function $w()

2007-09-05 Thread Mislav Marohnić
On 9/5/07, jdalton [EMAIL PROTECTED] wrote: In some cases, other functions build off of these base functions and the slow down can eventually grow For example using large arrays or calling a method 1000+ times that make heavy use of the Enumerable helpers is slow compared using a

[Prototype-core] Re: Element.addMethods

2007-09-05 Thread Mislav Marohnić
On 9/5/07, Nicolás Sanguinetti [EMAIL PROTECTED] wrote: For example, I want only certain rows of a table to have some methods available, and would love to do something like Element.addMethods(tr.combatant, Combatant.Methods); The extension mechanism is already quite complex because of the

[Prototype-core] Re: Enumeration of 'toString' method fails in at least IE6

2007-09-05 Thread Andrew Red
Thanks. Must have searched here a little more. ) (but there's still no solution in v1.6.0_rc0 ) On Sep 5, 6:19 am, jdalton [EMAIL PROTECTED] wrote: Hello Andrew, I brought this up in May 07:http://groups.google.com/group/prototype-core/browse_thread/thread/55... Mislav Marohnić and Tobias

[Prototype-core] Re: Indiscriminate use of breaking into words function $w()

2007-09-05 Thread Thomas Fuchs
Am 05.09.2007 um 04:11 schrieb jdalton: Other rant: Also I don't see a valid argument for not using opening and closing conditional brackets { }... Its a few brackets here and there that would make the code soo much less cryptic. I think that gzipping and this would still keep the filesize

[Prototype-core] Re: Indiscriminate use of breaking into words function $w()

2007-09-05 Thread jdalton
Hi Thomas, I concede the $w() point. I did not know that using brackets is slower. How much so and are there benchmarks for that claim? I agree that: If(blah) return; Is fine, I do little stuff like that in my code, but lets use a real example: http://pastie.caboo.se/private/y6hmgibpglrlwlknms

[Prototype-core] Re: Indiscriminate use of breaking into words function $w()

2007-09-05 Thread Jeff Watkins
Ultimately, this and several other topics come down to the fact that Prototype is the JavaScript library for Ruby programmers. This isn't bad, it's just something that non-Ruby coders like myself have to come to grips with. Prototype prefers method names like uniq rather than unique, for

[Prototype-core] Re: Indiscriminate use of breaking into words function $w()

2007-09-05 Thread Jeff Watkins
On Sep 5, 2007, at 7:28 AM, Thomas Fuchs wrote: Am 05.09.2007 um 16:22 schrieb jdalton: I did not know that using brackets is slower. No, that's just a claim. :) I'd welcome benchmarks for this (i've the feeling it's not really measurable, but you never know...). Thomas, brackets once

[Prototype-core] Opera contentLoaded gotcha with external stylesheets.

2007-09-05 Thread jdalton
I just saw a post on this Opera bug. I don't suggest a fix or anything just wanted to let you know: http://my.opera.com/nicomen/blog/2007/07/08/domcontentloaded-gotcha-with-external-stylesheets --~--~-~--~~~---~--~~ You received this message because you are

[Prototype-core] Re: Opera contentLoaded gotcha with external stylesheets.

2007-09-05 Thread Mislav Marohnić
On 9/5/07, jdalton [EMAIL PROTECTED] wrote: I just saw a post on this Opera bug. I don't suggest a fix or anything just wanted to let you know: http://my.opera.com/nicomen/blog/2007/07/08/domcontentloaded-gotcha-with-external-stylesheets DOMContentLoaded should be standardized. Is there

[Prototype-core] Re: Opera contentLoaded gotcha with external stylesheets.

2007-09-05 Thread Andrew Dupont
That very blog post points to HTML5 work on the issue. If you're brave, Mislav, you could ask for a spec clarification on the HTML5 mailing list. Cheers, Andrew On Sep 5, 10:20 am, Mislav Marohnić [EMAIL PROTECTED] wrote: On 9/5/07, jdalton [EMAIL PROTECTED] wrote: I just saw a post on