Core: Deprecate jQuery.parseJSON

Fixes gh-2800
Closes gh-2948
This commit is contained in:
Michał Gołębiowski
2016-02-24 23:47:19 +01:00
parent 8a91f8442f
commit 93a8fa6bfc
9 changed files with 80 additions and 107 deletions

View File

@@ -35,7 +35,7 @@ function dataAttr( elem, key, data ) {
// Only convert to a number if it doesn't change the string
+data + "" === data ? +data :
rbrace.test( data ) ? jQuery.parseJSON( data ) :
rbrace.test( data ) ? JSON.parse( data ) :
data;
} catch ( e ) {}