summaryrefslogtreecommitdiffhomepage
path: root/contrib/package/meshwizard
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2018-07-12 07:34:04 +0200
committerJo-Philipp Wich <jo@mein.io>2018-07-12 18:10:10 +0200
commit674b090d347a497e2754d85c756d234138201c85 (patch)
treec9a936d6facf2568bff94ce02e4d535dbe1d6b20 /contrib/package/meshwizard
parent0d96655f8b9f77c11a6e15e1ef4bb1aae70f608f (diff)
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>
Diffstat (limited to 'contrib/package/meshwizard')
0 files changed, 0 insertions, 0 deletions