josejamilena-lda / jwebsocket

Automatically exported from code.google.com/p/jwebsocket
1 stars 1 forks source link

Improve Plug-In specific callbacks #128

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Currently the set<PlugIn>Callbacks do only set a single callback. In cases 
where multiple instances (like e.g. in an frame or iframe based site or simply 
if an event is supposed to be distributed to multiple listeners) the API is 
still limited to a single callback.
We need to extend that to support multiple listeners per event. We need to take 
care that the existing mechanism is kept due to upward compatibility and add 
the new mechanism and mark the old one as deprecated to be removed later.
We also need to introduc a check if callbacks do not exist anymore, because the 
objects have been deleted and automatically remove the corresponding listeners 
from the internal lists.

Original issue reported on code.google.com by fivefeetfurther@gmail.com on 7 Jun 2011 at 9:50