aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2010-08-27 18:17:07 -0400
committerJohn Resig <jeresig@gmail.com>2010-08-27 18:17:07 -0400
commit13f27fcd05987dc8951621ea55795fde792d7b79 (patch)
treea4c76fcbf30afac0c6cb098f4a0b3f81d2bb5ce4
parent1ead20c2ed7cb4fd647d632ff9de8104669482de (diff)
downloadjquery-13f27fcd05987dc8951621ea55795fde792d7b79.tar.gz
jquery-13f27fcd05987dc8951621ea55795fde792d7b79.zip
Switched to use 'in' for the setInterval/window check as it also skirts around the Safari 2 NodeList crasher. See the discussion in 94f35d05199ec1634d9c8c60d10f298f260056bd for more details.
-rw-r--r--src/core.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.js b/src/core.js
index 905a39931..f5c27561b 100644
--- 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);
- 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 );