X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fcore.js;h=50ad55d94ff292629dff8874019b3e154fa3c444;hb=396dd2127330a7ed742d1e9092af54b668c46e85;hp=e1a3a6df2523b0d335cbfcf1ebe114513efbc186;hpb=6f031c10157a2ca2265e0dbf684ef527d79afb56;p=jquery.git diff --git a/src/core.js b/src/core.js index e1a3a6d..50ad55d 100644 --- a/src/core.js +++ b/src/core.js @@ -594,7 +594,8 @@ jQuery.extend({ // The window, strings (and functions) also have 'length' // 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) ) { + // Tweaked logic slightly to handle Blackberry 4.7 RegExp issues #6930 + if ( array.length == null || typeof array === "string" || jQuery.isFunction(array) || typeof array === "function" || typeof array.setInterval !== "undefined" ) { push.call( ret, array ); } else { jQuery.merge( ret, array );