[Prototype-core] Virtual methods, base reference, methods and inheritance

2007-09-03 Thread Andrew Red
Gentlemen, A set of questions related to inheritance in Prototype: 1. will there be virtual methods? Like, if A is B's parent; A has a() and b() methods; B has only b(); oB is an instance of B. So oB.a() to call A#a() with oB as execution context and oB.b() to call B#b() with the same oB

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

2007-09-03 Thread Andrew Red
These lines occur only once when loading the framework. The difference is insignificant. You're right. Yet readability and clarity is. Also, there's more chance to make error in a concatenated space-containing sting, like it's in lines #2368-2369, than in an array of strings. $w('colSpan

[Prototype-core] Re: Virtual methods, base reference, methods and inheritance

2007-09-03 Thread Andrew Red
regardless my bad english... On Sep 3, 6:20 pm, Andrew Red [EMAIL PROTECTED] wrote: Gentlemen, A set of questions related to inheritance in Prototype: 1. will there be virtual methods? Like, if A is B's parent; A has a() and b() methods; B has only b(); oB is an instance of B. So

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

2007-09-03 Thread Andrew Red
)) Okay, okay. Your way. ) On Sep 3, 10:19 pm, Mislav Marohnić [EMAIL PROTECTED] wrote: On 9/3/07, Andrew Red [EMAIL PROTECTED] wrote: So, summing you up, each time before we have an vanilla array from the spaces-delimited string we go through: string - stack hop - stack hop - replace

[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: keypress remapped as keydown in prototype 1.6rc0

2007-09-25 Thread Andrew Red
Will it be addressed, then? On Sep 25, 5:05 pm, Mislav Marohnić [EMAIL PROTECTED] wrote: On 9/25/07, Viktor Kojouharov [EMAIL PROTECTED] wrote: Is there any particular reason why this remap has been introduced? Yes. In certain browsers (WebKit, for one), the keycode property isn't

[Prototype-core] String#times performance pit in IE

2007-09-25 Thread Andrew Red
As can be noted by increasing the argument in String#times, execution time slows down dramatically and makes logarithmically identical curve (to one produced my String#times in FireFox), yet of doubled order magnitude. An alternative method for IE exists that makes use of array concatenation.

[Prototype-core] JSON conversion isn't adequate

2007-09-25 Thread Andrew Red
To explain the subject line, I believe, the concept of JSON strings should be described by the following formula: eval(obj.toJSON()) - obj, i.e. toJSON methods should return such a string from an object that if evaluated, the result to be identical to that original object. I believe, this

[Prototype-core] Re: JSON conversion isn't adequate

2007-09-25 Thread Andrew Red
On Sep 26, 5:34 am, Tom Gregory [EMAIL PROTECTED] wrote: On Sep 25, 2007, at 4:20 PM, Andrew Red wrote: To explain the subject line, I believe, the concept of JSON strings should be described by the following formula: eval(obj.toJSON()) - obj, i.e. toJSON methods should return such a string