luci/modules/luci-base/htdocs
Jo-Philipp Wich 674b090d34 luci-base: xhr.js: use JSON.parse() and pass request duration to callbacks
JSON.parse() is supported on all modern browsers and a far better
solution than the hakish and potentially dangerous eval().

Also calculate the duration of request and pass it as 3rd argument to the
callback function, this makes it easier to calculate request delays or
poll intervals in code using XHR.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-07-12 18:10:10 +02:00
..
cgi-bin Rework LuCI build system 2015-01-08 16:26:20 +01:00
luci-static/resources luci-base: xhr.js: use JSON.parse() and pass request duration to callbacks 2018-07-12 18:10:10 +02:00