Skip to content

Commit

Permalink
Merge pull request #12 from shankari/better_post_support
Browse files Browse the repository at this point in the history
Fix typo in post function + make name more descriptive
  • Loading branch information
shankari authored Jul 8, 2016
2 parents ebadc57 + b648e3f commit cf09186
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions www/servercomm.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit cf09186

Please sign in to comment.