In function http_response (app.js) we have:

// execute callback functions of plugins 

if (response.callbacks && response.callbacks.length) {
   for (var i=0; i < response.callbacks.length; i++)
     this.triggerEvent(response.callbacks[i][0], response.callbacks[i][1]);
}

This code isn't realy useful and redundant because we have 
response.exec. Is someone using it? I propose to replace this with 
something more useful:

this.triggerEvent('response'+response.action, {});

or, even better, two calls responsebefore* and responseafter*.

-- 
Aleksander 'A.L.E.C' Machniak http://alec.pl gg:2275252
LAN Management System Developer http://lms.org.pl
Roundcube Webmail Developer http://roundcube.net
_______________________________________________
List info: http://lists.roundcube.net/dev/

Reply via email to