luci-base: rpc.js: drop batch api
authorJo-Philipp Wich <jo@mein.io>
Fri, 5 Apr 2019 06:14:28 +0000 (08:14 +0200)
committerJo-Philipp Wich <jo@mein.io>
Sun, 7 Jul 2019 13:36:25 +0000 (15:36 +0200)
commita31dc6f3c1524f05a6aac2970b61b0e84628475c
treefcfdb9bbc8ef83a054eece0643eaf78b4b108e73
parent5264a943b9df5ba9a6535ce2fcac73ccccc3caa5
luci-base: rpc.js: drop batch api

Now that LuCI.Request is transparently coalescing requests, there
is no need for the rather cumbersome batch()/flush() api in rpc.js.

Also refactor the code to get rid of the rpcRequestRegistry indirection
and remove superfluous promises which simplifies the code a lot.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/rpc.js