[Prototype-core] Re: Can the Enumarable iterators be changed to accept scope as the first param (optionally)

2008-02-11 Thread aljoscha
if Enumerable was a class. But it isn't! It's never going to be a class; it was supposed to be a module like in Ruby language, which is then mixed in certain classes that define _each to get enumerable goodness. The Ruby analogy is not going very far anyway: If you change an Enumerable

[Prototype-core] updated Selector.findChildElements to defer to [node].querySelectorAll() if it's available. [PATCH]

2008-02-11 Thread John-David Dalton
I modified Prototype to allow for the use of native CSS selector support. http://webkit.org/blog/156/queryselector-and-queryselectorall/ I have attached a screen shot of the performance boost running on the nightly build: http://nightly.webkit.org/files/trunk/win/WebKit-SVN-r30154.zip (built on

[Prototype-core] Re: Adding Prototype.Revision

2008-02-11 Thread Jon L.
An alternative could be to use the release date: var Prototype = { Version: '1.6.0.2', Release: '01/25/2008' ... }; if(Date(Prototype.Release) = Date('11/07/2007')) { // 1.6.0 (November 7, 2007) ... } On Feb 11, 6:55 pm, tancurrom [EMAIL PROTECTED] wrote: Build: '5234724' Be

[Prototype-core] Re: Event.isLeftClick() vs. click event in IE

2008-02-11 Thread artemy tregoubenko
I don't want to break keyboard navigation only because of IE problem. On Tue, 12 Feb 2008 03:45:22 +0300, tancurrom [EMAIL PROTECTED] wrote: I think its just because of the way JavaScript handles the click event. Use the 'mousedown' event instead of the 'click' event and you will get your

[Prototype-core] Re: Can the Enumarable iterators be changed to accept scope as the first param (optionally)

2008-02-11 Thread Mislav Marohnić
On Feb 11, 2008 2:35 PM, aljoscha [EMAIL PROTECTED] wrote: Not so in the newer Hash implementation of prototype (starting with 1.5 something) - by manually copying all methods to the inheriting classes this runtime flexibility was lost, probably as a trade off for gaining an improved memory

[Prototype-core] Event.isLeftClick() vs. click event in IE

2008-02-11 Thread artemy tregoubenko
Hello, Event.isLeftClick() is told to differ left clicks from right and middle clicks. However when I run document.observe('click', function(event){ alert(event.isLeftClick()); }) in IE and then left-click page, I see 'false' in alert. This starts working if you listen to 'mousedown' or

[Prototype-core] Re: Adding Prototype.Revision

2008-02-11 Thread tancurrom
I think using a build number is considerably easier to manipulate in the code. Its considerably more specific that a version number. But include both var Prototype = { Build: '5234724', Version: '1.6.0.3', ... or var Prototype = { Build: '5234724', // v1.6.0.3 ... I can actually