Re: Why 'event' is not defined in Mozilla



On 25/11/2005 22:30, Thomas 'PointedEars' Lahn wrote:

[snip]

onkeypress="return isNumberInput(this, event);"

[snip]

The `event' _there_ does _not_ refer to a global event object in IE

Is that supposed to be a statement of fact,

(well, maybe it does indirectly, but to think about that is futile).

or a statement that, for all intents and purposes, may as well be considered fact? I can accept the latter for the sake of simplicity, but not the former unless you can prove otherwise.


[MLW:]
  window.event == event

will evaluate to false,

Indeed, as it should.

Even if event is a property of an object in the scope chain other than the global object, I would find it hard to believe that its value is a reference to a separate object.


I maintain (unless someone proves to the contrary) that they are not only references to the same object, but the same property and the result of the comparison above is a symptom of the behaviour exhibited when window.event is compared to itself.

[snip]

Mike

--
Michael Winter
Prefix subject with [News] before replying by e-mail.
.



Relevant Pages

  • Re: Assembly Hell !!!
    ... Angel ... > would cause App1 to reference a non-existant previous ...
    (microsoft.public.dotnet.general)
  • Re: Refutation of Bertrand Russells Barber Paradox
    ... > For the sake of interest, ... > I ask since to the extent that I have read Frege, ... permissible if the concept applies to one and only one single object. ... that the number 0 shall count as its reference, ...
    (sci.logic)
  • Re: And in keeping with the long standing Tradition here on RAMD
    ... argue just for the sake of arguing, thus my reference to the 24/7/365 ... celebration of the "Ritual of the Airing Grievances". ...
    (rec.arts.marching.drumcorps)
  • Re: "poofing" stuff into existence
    ... Apparently there is a disconnect between simplicity and complexity. ... Equalizing both comes with much difficulty without a base of ... reference. ...
    (talk.origins)
  • Re: ASP.NET Question Regarding COM+ vs Web Services
    ... How do you add a reference to a com+ application from asp.net? ... > connection pooling, well, depending of what you want to do, but the ... > simplicity in transaction management is really a great feature you only ...
    (microsoft.public.dotnet.framework.component_services)