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
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
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
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
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
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
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