>
> unfortunately not :(
>
>
> I'll be looking into this, as it is a showstopper otherwise. But so far I'm
> out of wits here...
There was some confusion here on my side, as the object passed _is_ an event -
some formatting/internal representation differences between Mozilla and IE
made that not apparent to me at first.
However, the problem appeared when I invoke
event.stop()
That makes things fail in IE, because this code:
/** @id MochiKit.Signal.Event.prototype.stopPropagation */
stopPropagation: function () {
if (this._event.stopPropagation) {
this._event.stopPropagation();
} else {
this._event.cancelBubble = true;
}
},
will throw an exception:
name=Error
number=-2147352573
description=Member not found # [translation from german, actually]
messag= [same as description]
I actually use this code to hunt it down:
/** @id MochiKit.Signal.Event.prototype.stopPropagation */
stopPropagation: function () {
alert("this._event:" + this._event);
alert("this._event.stopPropagation:" + this._event.stopPropagation);
if (this._event.stopPropagation) {
alert('this._event.stopPropagation();');
this._event.stopPropagation();
} else {
this._event.cancelBubble = true;
}
alert("stopPropagation left");
},
I will receive the first two alerts, the second saying:
this._event.stopPropagation:undefined
But then, the next access would fail.
The real problem: what I actually did was caching a event instance. The
onkeyup event I bind is supposed to be delayed, so I will call a wait on it.
So I cached it and later on timeout passed it to the code that would trigger
the reloading of my data.
Lesson learned: do not cache events in IE!! It severely breaks things. I
wasn't aware of that, and FF obviously didn't care - all in all, it was a
beast to hunt down. But I guess you guys knew that already.
Well - sorry to have caused confusion here. But maybe someone as stupid as me
will stumble over that, and find this posting.
Diez
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---