mirror of
https://github.com/jquery/jquery.git
synced 2026-02-12 03:14:58 -05:00
Make sure the data- number has at least one number in it before passing to isNaN. Thanks to @cms in 8ebb9b22df for a heads-up.
This commit is contained in:
@@ -157,7 +157,7 @@ jQuery.fn.extend({
|
||||
data = data === "true" ? true :
|
||||
data === "false" ? false :
|
||||
data === "null" ? null :
|
||||
!isNaN( data ) ? parseFloat( data ) :
|
||||
/\d/.test( data ) && !isNaN( data ) ? parseFloat( data ) :
|
||||
rbrace.test( data ) ? jQuery.parseJSON( data ) :
|
||||
data;
|
||||
} catch( e ) {}
|
||||
|
||||
Reference in New Issue
Block a user