| author | gibus |
| Tue, 16 Jul 2013 14:29:46 +0200 | |
| changeset 525 | 89ef5ed3c48b |
| permissions | -rw-r--r-- |
| 525 | 1 |
/* |
2 |
YUI 3.10.3 (build 2fb5187) |
|
3 |
Copyright 2013 Yahoo! Inc. All rights reserved. |
|
4 |
Licensed under the BSD License. |
|
5 |
http://yuilibrary.com/license/ |
|
6 |
*/ |
|
7 |
||
8 |
YUI.add('json-parse', function (Y, NAME) { |
|
9 |
||
10 |
var _JSON = Y.config.global.JSON; |
|
11 |
||
12 |
Y.namespace('JSON').parse = function (obj, reviver, space) { |
|
13 |
return _JSON.parse((typeof obj === 'string' ? obj : obj + ''), reviver, space); |
|
14 |
}; |
|
15 |
||
16 |
||
17 |
}, '3.10.3', {"requires": ["yui-base"]}); |