aboutsummaryrefslogtreecommitdiffstats
path: root/src/core.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/core.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/core.js')
-rw-r--r--src/core.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core.js b/src/core.js
index cc921385d..3389e83f7 100644
--- a/src/core.js
+++ b/src/core.js
@@ -33,6 +33,9 @@ var jQuery = function( selector, context ) {
// Check for non-word characters
rnonword = /\W/,
+ // Check for digits
+ rdigit = /\d/,
+
// Match a standalone tag
rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>)?$/,
@@ -488,6 +491,10 @@ jQuery.extend({
return obj && typeof obj === "object" && "setInterval" in obj;
},
+ isNaN: function( obj ) {
+ return obj == null || !rdigit.test( obj ) || isNaN( obj );
+ },
+
type: function( obj ) {
return obj == null ?
String( obj ) :