From b648e3fc32499784b838b8f30a6e3abec20a9062 Mon Sep 17 00:00:00 2001 From: "K. Shankari" Date: Thu, 7 Jul 2016 16:47:10 -0700 Subject: [PATCH] Fix typo in post function + make name more descriptive - `ServerCommuniation` is a typo - `postUserPersonalData` is a closer match to `getUserPersonalData` --- www/servercomm.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/servercomm.js b/www/servercomm.js index 44620cb..41a1126 100644 --- a/www/servercomm.js +++ b/www/servercomm.js @@ -25,11 +25,11 @@ var ServerCommunication = { messageFiller(filledMessage); exec(successCallback, errorCallback, "ServerComm", "pushGetJSON", [relativeURL, filledMessage]); }, - pushJSON: function(relativeUrl, objectLabel, objectJSON, successCallback, errorCallback) { + postUserPersonalData: function(relativeUrl, objectLabel, objectJSON, successCallback, errorCallback) { var msgFiller = function(message) { message[objectLabel] = objectJSON; }; - ServerCommuniation.pushGetJSON(relativeUrl, msgFiller, successCallback, errorCallback); + ServerCommunication.pushGetJSON(relativeUrl, msgFiller, successCallback, errorCallback); }, getUserPersonalData: function(relativeUrl, successCallback, errorCallback) { var msgFiller = function(message) {