From a1581d7fde2b8663ad07a2d3d675776164369f26 Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Sun, 13 Mar 2011 19:24:08 +0000 Subject: 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 --- sca-cpp/trunk/modules/js/htdocs/component.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sca-cpp/trunk/modules/js/htdocs/component.js') 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"; -- cgit v1.2.3