From 1e4f4441bb978224abd4ff4f5a1a3232ca0e957c Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sun, 28 Jun 2020 16:55:37 -0700 Subject: [PATCH] Use dot notation instead of subscript. --- frontends/ycdl_flask/static/js/common.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontends/ycdl_flask/static/js/common.js b/frontends/ycdl_flask/static/js/common.js index d2d7275..5c67f7d 100644 --- a/frontends/ycdl_flask/static/js/common.js +++ b/frontends/ycdl_flask/static/js/common.js @@ -18,10 +18,10 @@ function _request(method, url, callback) { if (request.status != 0) { - response["completed"] = true; - response["data"] = JSON.parse(request.responseText); + response.completed = true; + response.data = JSON.parse(request.responseText); } - response["meta"] = { + response.meta = { "request_url": url, "status": request.status }