diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2011-03-13 19:24:08 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2011-03-13 19:24:08 +0000 |
commit | a1581d7fde2b8663ad07a2d3d675776164369f26 (patch) | |
tree | 3e1e70b51aa3b64babf62363e1763cb2be08a2a3 /sca-cpp/trunk/modules/js/htdocs/component.js | |
parent | d1d9ba0e29baed02a052dae81b049d00a1454bf8 (diff) |
Add Javascript functions and test cases to help work with JSON.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1081204 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-cpp/trunk/modules/js/htdocs/component.js')
-rw-r--r-- | sca-cpp/trunk/modules/js/htdocs/component.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sca-cpp/trunk/modules/js/htdocs/component.js b/sca-cpp/trunk/modules/js/htdocs/component.js index ecbcdeda5b..8e25292018 100644 --- a/sca-cpp/trunk/modules/js/htdocs/component.js +++ b/sca-cpp/trunk/modules/js/htdocs/component.js @@ -31,11 +31,11 @@ * Client component wiring API, supporting JSON and ATOM bindings. */ +var JSONClient = {}; + /** * Escape a character. */ -var JSONClient = {}; - JSONClient.escapeJSONChar = function(c) { if(c == "\"" || c == "\\") return "\\" + c; if (c == "\b") return "\\b"; |