src/cm/media/js/lib/yui/yui_3.10.3/build/json-parse/json-parse.js
changeset 525 89ef5ed3c48b
equal deleted inserted replaced
524:322d0feea350 525:89ef5ed3c48b
       
     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"]});