projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5a350de
)
Roo/util/JSON.js
author
Alan Knowles
<alan@roojs.com>
Wed, 4 Aug 2021 04:28:43 +0000
(12:28 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 4 Aug 2021 04:28:43 +0000
(12:28 +0800)
Roo/util/JSON.js
patch
|
blob
|
history
diff --git
a/Roo/util/JSON.js
b/Roo/util/JSON.js
index
c2c29fd
..
5dc12aa
100644
(file)
--- 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
* Modified version of Douglas Crockford"s json.js that doesn"t
* mess with the Object prototype
* http://www.json.org/js.html
- * @s
tatic
+ * @s
ingleton
*/
Roo.util.JSON = new (function(){
var useHasOwn = {}.hasOwnProperty ? true : false;
*/
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
/**
* Encodes an Object, Array or other value
- * @static
* @param {Mixed} o The variable to encode
* @return {String} The JSON string
*/
* @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.
/**
* 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
*/
* @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}
})();
/**
* 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}
* @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;
* @member Roo decode
* @method */
Roo.decode = typeof(JSON) != 'undefined' && JSON.parse ? JSON.parse : Roo.util.JSON.decode;