I use Angular.js and this github.com example to invoke remote action
Visualforce.remoting.Manager.invokeAction.apply(
Visualforce.remoting.Manager, args);
I need to 'hook' all this SF requests/responses on a page to save arguments.
Like:
Add a “hook” to all AJAX requests on a page or
catch all ajax requests in jquery
I don't want to save arguments before .apply line:
saveArguments(args);
Visualforce.remoting.Manager.invokeAction.apply(
Visualforce.remoting.Manager, args);
I need to make separated service/module.
I'm going to override the native invokeAction(). Is it good way? If invokeAction uses AJAX, I can't find anything in Visualforce.remoting.Manager.invokeAction related with AJAX.
So could you give me some tips how I can... maybe... only override the native invokeAction() or you know better way.
Thanks.