there's one thing missing in the invokeEvent-method:
the src-property doesn't get updated when the event bubbles up.


DynObject.prototype.invokeEvent=function(type,e) {
    if (!e) e=new DynEvent(type,this);
    if (this.hasEventListeners) for(var
i=0;i<this.eventListeners.length;i++) {
        e.target=this.eventListeners[i].target;
        this.eventListeners[i].handleEvent(type,e);
    }

    if(e.bubble && this.parent) {
        e.preBubbleCode();
        e.src = this.parent;          // <<== added line
        this.parent.invokeEvent(type,e);
    }
}


--

Michael Buerge


_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev

Reply via email to