Reputation: 13
Why can the event object have no properties? I get this error in Mozilla Firefox while in IE and Opera all is well.
Please, follow this link to see the problem: here was the link
Upvotes: 1
Views: 166
Reputation: 35081
EDIT (now that a link is available): the problem is that you are attaching handleMove
as the event handler which receives the event argument, then calling documentRelative
and attempting to get the event object in there - but you never pass the event argument along.
Change lines 54 and 55 as follows:
function handleMove(e) {
var documRelative = documentRelative(e);
or move
var e = (e) ? e : window.event;
from documentRelative
to the start of handleMove
and pass it into documentRelative
.
Upvotes: 3