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