From: Alan Knowles Date: Wed, 4 Aug 2021 04:28:43 +0000 (+0800) Subject: Roo/util/JSON.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=cb39b060ce89081c3cb3731e65aec0982a1cf7aa Roo/util/JSON.js --- diff --git a/Roo/util/JSON.js b/Roo/util/JSON.js index c2c29fda69..5dc12aa293 100644 --- a/Roo/util/JSON.js +++ b/Roo/util/JSON.js @@ -13,7 +13,7 @@ * Modified version of Douglas Crockford"s json.js that doesn"t * mess with the Object prototype * http://www.json.org/js.html - * @static + * @singleton */ Roo.util.JSON = new (function(){ var useHasOwn = {}.hasOwnProperty ? true : false; @@ -83,7 +83,6 @@ Roo.util.JSON = new (function(){ /** * Encodes an Object, Array or other value - * @static * @param {Mixed} o The variable to encode * @return {String} The JSON string */ @@ -130,7 +129,6 @@ Roo.util.JSON = new (function(){ /** * Decodes (parses) a JSON string to an object. If the JSON is invalid, this function throws a SyntaxError. - * @static * @param {String} json The JSON string * @return {Object} The resulting object */ @@ -141,13 +139,11 @@ Roo.util.JSON = new (function(){ })(); /** * Shorthand for {@link Roo.util.JSON#encode} - * @member Roo encode - * @static + * @member Roo encode * @method */ Roo.encode = typeof(JSON) != 'undefined' && JSON.stringify ? JSON.stringify : Roo.util.JSON.encode; /** * Shorthand for {@link Roo.util.JSON#decode} - * @static * @member Roo decode * @method */ Roo.decode = typeof(JSON) != 'undefined' && JSON.parse ? JSON.parse : Roo.util.JSON.decode;