mirror of
https://github.com/jquery/jquery.git
synced 2026-02-04 18:45:03 -05:00
Core: Deprecate jQuery.parseJSON
Fixes gh-2800 Closes gh-2948
This commit is contained in:
@@ -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 ) {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user