git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
1ead20c
)
Switched to use 'in' for the setInterval/window check as it also skirts around the...
author
John Resig
<jeresig@gmail.com>
Fri, 27 Aug 2010 22:17:07 +0000
(18:17 -0400)
committer
John Resig
<jeresig@gmail.com>
Fri, 27 Aug 2010 22:17:07 +0000
(18:17 -0400)
src/core.js
patch
|
blob
|
history
diff --git
a/src/core.js
b/src/core.js
index
905a399
..
f5c2756
100644
(file)
--- a/
src/core.js
+++ b/
src/core.js
@@
-605,7
+605,7
@@
jQuery.extend({
// Tweaked logic slightly to handle Blackberry 4.7 RegExp issues #6930
var type = jQuery.type(array);
// Tweaked logic slightly to handle Blackberry 4.7 RegExp issues #6930
var type = jQuery.type(array);
- if ( array.length == null || type === "string" || type === "function" || type === "regexp" || (typeof type !== "function" && array.setInterval) ) {
+ if ( array.length == null || type === "string" || type === "function" || type === "regexp" || "setInterval" in array ) {
push.call( ret, array );
} else {
jQuery.merge( ret, array );
push.call( ret, array );
} else {
jQuery.merge( ret, array );