public void handleEvent(Event evt)
{
throw new RuntimeException("Must be catched by global");
}
};
itsNatDoc.addEventListener((EventTarget)linkToStart,"click",listeners[0],false,new CustomParamTransport("num","1"));
listeners[1] = new EventListener() // Second listener
{
public void handleEvent(Event evt)
{
log("Second listener executed");
}
};
itsNatDoc.addEventListener((EventTarget)linkToStart,"click",listeners[1],false,new CustomParamTransport("num","2"));
listeners[2] = new EventListener() // Third listener
{
public void handleEvent(Event evt)
{
throw new RuntimeException("NEVER THROWN!");
}
};
itsNatDoc.addEventListener((EventTarget)linkToStart,"click",listeners[2],false,new CustomParamTransport("num","3"));
}