Mustafa Sak-3 wrote:
> 
> removeListenerByType : function(target, eventType)
>     {
>       var listenerIds =
> qx.event.Registration.getManager(target).getListeners(target, eventType);
> 
>       if (listenerIds == null) {
>         return;
>       }
> 
>       for (var i=0; i<listenerIds.length; i++)
>       {
>         var listenerHandler = listenerIds[i].handler;
>         var context = listenerIds[i].context;
>         qx.event.Registration.getManager(target).removeListener(target,
> eventType, listenerHandler, context);
>       }
>     } 
> 

Nice piece of code... Thanks for sharing!

--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/removeListener-vs-removeListenerById-tp6546722p6548425.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to