Bug Tracker

Ticket #4977: jsonSupport.patch

File jsonSupport.patch, 392 bytes (added by umbrae, 10 years ago)

Adds '$.support' checking for native JSON

  • src/support.js

    diff --git a/src/support.js b/src/support.js
    index 332839d..1aa5318 100644
    a b  
    4646                // (IE uses styleFloat instead of cssFloat)
    4747                cssFloat: !!a.style.cssFloat,
    4848
     49                // Check to see if we have a native JSON parser
     50                json: typeof JSON === "object" && JSON.parse,
     51
    4952                // Will be defined later
    5053                scriptEval: false,
    5154                noCloneEvent: true,