git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
IE6 will shrink-wrap elements with layout instead of allowing content to flow outside...
[jquery.git]
/
src
/
core.js
diff --git
a/src/core.js
b/src/core.js
index
cc92138
..
3389e83
100644
(file)
--- 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 non-word characters
rnonword = /\W/,
+ // Check for digits
+ rdigit = /\d/,
+
// Match a standalone tag
rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>)?$/,
// Match a standalone tag
rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>)?$/,
@@
-488,6
+491,10
@@
jQuery.extend({
return obj && typeof obj === "object" && "setInterval" in obj;
},
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 ) :
type: function( obj ) {
return obj == null ?
String( obj ) :