R
Robert
Hi,
I was trying Firefox 1.5 beta with my javascript and found out that the
following test did no work anymore.
if (this.constructor == Event)
I think they changed it that this.constructor is a MousEvent now. I
thought I would try to see if I could make an instanceOf method that
would also check the type of the prototypes, but the prototype of the
MouseEvent is some native object.
So is there any way to see if this.constructor is an event, any event?
I was trying Firefox 1.5 beta with my javascript and found out that the
following test did no work anymore.
if (this.constructor == Event)
I think they changed it that this.constructor is a MousEvent now. I
thought I would try to see if I could make an instanceOf method that
would also check the type of the prototypes, but the prototype of the
MouseEvent is some native object.
So is there any way to see if this.constructor is an event, any event?