mirror of
https://github.com/jquery/jquery.git
synced 2026-02-02 13:15:05 -05:00
Core: add workaround for iOS JIT error in isArrayLike
Fixes gh-2145
This commit is contained in:
@@ -432,7 +432,12 @@ function(i, name) {
|
||||
});
|
||||
|
||||
function isArraylike( obj ) {
|
||||
var length = obj.length,
|
||||
|
||||
// Support: iOS 8.2 (not reproducible in simulator)
|
||||
// `in` check used to prevent JIT error (gh-2145)
|
||||
// hasOwn isn't used here due to false negatives
|
||||
// regarding Nodelist length in IE
|
||||
var length = "length" in obj && obj.length,
|
||||
type = jQuery.type( obj );
|
||||
|
||||
if ( type === "function" || jQuery.isWindow( obj ) ) {
|
||||
|
||||
Reference in New Issue
Block a user