Skip to content
Permalink
Browse files

Added an extra function check to prevent crashes in Safari 2. Fixes #…

  • Loading branch information
jeresig committed Dec 7, 2009
1 parent 5980292 commit 62a34450c0961e461a72ce4d96f94551ef393b56
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/core.js
@@ -417,7 +417,9 @@ jQuery.extend({

if ( array != null ) {
// The window, strings (and functions) also have 'length'
if ( array.length == null || typeof array === "string" || jQuery.isFunction(array) || array.setInterval ) {
// The extra typeof function check is to prevent crashes
// in Safari 2 (See: #3039)
if ( array.length == null || typeof array === "string" || jQuery.isFunction(array) || (typeof array !== "function" && array.setInterval) ) {
push.call( ret, array );
} else {
jQuery.merge( ret, array );

0 comments on commit 62a3445

Please sign in to comment.
You can’t perform that action at this time.