[Prototype-core] Firefox 2.0.0.x Event.element()

2008-09-02 Thread therutz
Using prototype.js 1.6.0 and Firefox 2.0.0.x and Event.element() returns the wrong element. Instead of an HTMLImageElement it's returning the document. Looks like a general bug with these versions of Firefox, both PC and Mac. I found that same problem and a fix in a site about Rails. >From line:

[Prototype-core] Re: Firefox 2.0.0.x Event.element()

2008-09-02 Thread Andrew Dupont
I believe we've fixed this since 1.6.0. Update to 1.6.0.2 and see if it still happens. Cheers, Andrew On Sep 2, 8:47 am, therutz <[EMAIL PROTECTED]> wrote: > Using prototype.js 1.6.0 and Firefox 2.0.0.x and Event.element() > returns the wrong element. Instead of an HTMLImageElement it's > return

[Prototype-core] isNumber or Not A Number ??

2008-09-02 Thread EMoreth
Could someone tell me why Object.isNumber(NaN) returns TRUE ?? Shouldnt this be false ?? EMoreth --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Prototype: Core" group. To post to this group, send email to prototyp

[Prototype-core] Re: isNumber or Not A Number ??

2008-09-02 Thread Andrew Dupont
Because "typeof NaN" is "number." Other people have complained about this, so we may change it in a future version. Cheers, Andrew On Sep 2, 8:25 pm, EMoreth <[EMAIL PROTECTED]> wrote: > Could someone tell me why Object.isNumber(NaN) returns TRUE ?? > > Shouldnt this be false ?? > > EMoreth --~-

[Prototype-core] Re: isNumber or Not A Number ??

2008-09-02 Thread kangax
On Sep 2, 9:25 pm, EMoreth <[EMAIL PROTECTED]> wrote: > Could someone tell me why Object.isNumber(NaN) returns TRUE ?? > > Shouldnt this be false ?? This is a somewhat controversial issue. The trunk version actually returns false (by making sure `isFinite` returns a truthy value). -- kangax --~-