You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by hu...@apache.org on 2016/09/02 07:44:12 UTC
[10/17] incubator-ponymail git commit: add returns
add returns
mostly so it looks neater
Project: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/commit/b3a9ba7a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/tree/b3a9ba7a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/diff/b3a9ba7a
Branch: refs/heads/coffee-and-cake
Commit: b3a9ba7af746393606a38590f2e21d51134e274f
Parents: 47a22fc
Author: Daniel Gruno <hu...@apache.org>
Authored: Thu Sep 1 17:49:44 2016 +0200
Committer: Daniel Gruno <hu...@apache.org>
Committed: Thu Sep 1 17:49:44 2016 +0200
----------------------------------------------------------------------
site/js/coffee/http_utils.coffee | 3 +++
1 file changed, 3 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/b3a9ba7a/site/js/coffee/http_utils.coffee
----------------------------------------------------------------------
diff --git a/site/js/coffee/http_utils.coffee b/site/js/coffee/http_utils.coffee
index 52bd8a8..5a9683b 100644
--- a/site/js/coffee/http_utils.coffee
+++ b/site/js/coffee/http_utils.coffee
@@ -64,6 +64,7 @@ fetch = (url, xstate, callback, snap, nocreds) ->
# JSON parse failed? Pass on the response as plain text then
catch e
callback(xmlHttp.responseText, xstate)
+ return
# post: like fetch, but do a POST with standard text fields
# - url: URL to POST to
@@ -109,6 +110,7 @@ post = (url, args, xstate, callback, snap) ->
# JSON parse failed? Try passing on as plain text
catch e
callback(xmlHttp.responseText, xstate)
+ return
# postJSON: Same as post, but send vars as a JSON object
postJSON = (url, json, xstate, callback, snap) ->
@@ -145,3 +147,4 @@ postJSON = (url, json, xstate, callback, snap) ->
# Fall back to plain text if parse failed
catch e
callback(xmlHttp.responseText, xstate)
+ return