aboutsummaryrefslogtreecommitdiffstats
path: root/src/data.js
diff options
context:
space:
mode:
authorjeresig <jeresig@gmail.com>2010-09-27 11:51:01 -0400
committerjeresig <jeresig@gmail.com>2010-09-27 11:51:01 -0400
commit0be7f4eb4f027dce00f11d7816290022d447d336 (patch)
treeb4347a748f59041f9ebf1311a6e0f4ec1db7bb44 /src/data.js
parent0da700a4d03c1c43e75e3ab7f8e719e13c7e444a (diff)
downloadjquery-0be7f4eb4f027dce00f11d7816290022d447d336.tar.gz
jquery-0be7f4eb4f027dce00f11d7816290022d447d336.zip
Make sure that opacity is being reset properly on a show animation. Additionally expose jQuery.isNaN from the data module.
Diffstat (limited to 'src/data.js')
-rw-r--r--src/data.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/data.js b/src/data.js
index 448e24393..43ab5955c 100644
--- a/src/data.js
+++ b/src/data.js
@@ -1,8 +1,7 @@
(function( jQuery ) {
var windowData = {},
- rbrace = /^(?:\{.*\}|\[.*\])$/,
- rdigit = /\d/;
+ rbrace = /^(?:\{.*\}|\[.*\])$/;
jQuery.extend({
cache: {},
@@ -174,7 +173,7 @@ jQuery.fn.extend({
data = data === "true" ? true :
data === "false" ? false :
data === "null" ? null :
- rdigit.test( data ) && !isNaN( data ) ? parseFloat( data ) :
+ !jQuery.isNaN( data ) ? parseFloat( data ) :
rbrace.test( data ) ? jQuery.parseJSON( data ) :
data;
} catch( e ) {}