in ns5 there has long been the problem that the events got fired multiple
times, this is because the event bubbles up the DOM, firing for all
parent-layers and the document as well. the target property of the event-obj
contains the element which originally fired it, thats why the same
eventListener ist called multiple times.
but: ns5's event-obj has a cancelBubble property, so by making a small
change to DynLayer.prototype.EventMethod, the event is fired only once (like
it shoud).

DynLayer.prototype.EventMethod = function(e) {
    var dyndoc=this.lyrobj.dyndoc;
    if (is.ie) {
        [ ...]   
    }
    else if (is.ns5) {
        e.cancelBubble = true;
    }
    [ ... ]
};


tested in mozilla 0.7 and NN6 on a mac.

--
// Michael Buerge


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

Reply via email to