diff options
author | Richard Gibson <richard.gibson@gmail.com> | 2013-10-28 11:35:53 -0400 |
---|---|---|
committer | Richard Gibson <richard.gibson@gmail.com> | 2013-10-28 11:35:53 -0400 |
commit | ced9d155f010bc456745a55a63ca959db9d405d3 (patch) | |
tree | 9346f6659c7359a2ca4b02f73757270e778f90a1 /src/data.js | |
parent | 95d1192d5378926e750d0494818323ff17be821e (diff) | |
download | jquery-ced9d155f010bc456745a55a63ca959db9d405d3.tar.gz jquery-ced9d155f010bc456745a55a63ca959db9d405d3.zip |
Fix #14459: Use jQuery.parseJSON instead of JSON.parse
Diffstat (limited to 'src/data.js')
-rw-r--r-- | src/data.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/data.js b/src/data.js index 5baf1c72a..63920bb9e 100644 --- a/src/data.js +++ b/src/data.js @@ -36,7 +36,7 @@ function dataAttr( elem, key, data ) { data === "null" ? null : // Only convert to a number if it doesn't change the string +data + "" === data ? +data : - rbrace.test( data ) ? JSON.parse( data ) : + rbrace.test( data ) ? jQuery.parseJSON( data ) : data; } catch( e ) {} |