Skip to content
Permalink
Browse files
Switched to use 'in' for the setInterval/window check as it also skir…
…ts around the Safari 2 NodeList crasher. See the discussion in 94f35d0 for more details.
  • Loading branch information
jeresig committed Aug 27, 2010
1 parent 1ead20c commit 13f27fc
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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 );

0 comments on commit 13f27fc

Please sign in to comment.