in partnership with mediatemple

Ticket #999 (new defect)

Opened 1 week ago

addEvent('scroll', foo.bindWithEvent(this)) IE error

Reported by: soconnor Owned by:
Type: defect Priority: minor
Milestone: Component: Core
Keywords: event scroll Cc:

Description

line 2686: this.target = event.target event.srcElement;

The event.srcElement returns null in IE 7 which hoops the next line of code. Our quick fix was to alter the next line of code from:

if ( this.target.nodeType == 3) this.target = this.target.parentNode;

to:

if ( this.target && this.target.nodeType == 3) this.target = this.target.parentNode;

However this means that there is not target attribute on the event object for scroll events.

Note: See TracTickets for help on using tickets.