git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added in the .delay() method for delaying the execution of queued functions and anima...
[jquery.git]
/
src
/
core.js
diff --git
a/src/core.js
b/src/core.js
index
3ba2a85
..
e2d3b60
100644
(file)
--- a/
src/core.js
+++ b/
src/core.js
@@
-29,10
+29,10
@@
var jQuery = function( selector, context ) {
rnotwhite = /\S/,
// Used for trimming whitespace
rnotwhite = /\S/,
// Used for trimming whitespace
- rtrim = /^\s+|\s+$/g,
+ rtrim = /(\s|\u00A0)+|(\s|\u00A0)+$/g,
// Match a standalone tag
// Match a standalone tag
- rsingleTag = /<(\w+)\s*\/?>(?:<\/\1>)?$/,
+ rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>)?$/,
// Keep a UserAgent string for use with jQuery.browser
userAgent = navigator.userAgent.toLowerCase(),
// Keep a UserAgent string for use with jQuery.browser
userAgent = navigator.userAgent.toLowerCase(),
@@
-315,7
+315,7
@@
jQuery.extend({
},
isObjectLiteral: function( obj ) {
},
isObjectLiteral: function( obj ) {
- if ( toString.call(obj) !== "[object Object]" ) {
+ if ( toString.call(obj) !== "[object Object]" || typeof obj.nodeType === "number" ) {
return false;
}
return false;
}