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*.