From: John Resig Date: Wed, 11 Nov 2009 04:07:05 +0000 (-0500) Subject: Renamed isObject to isObjectLiteral to be more specific. X-Git-Tag: 1.4a1~76 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4b55e94d0849568a2fd121952f13a9d6571c731f;p=jquery.git Renamed isObject to isObjectLiteral to be more specific. --- diff --git a/src/core.js b/src/core.js index 6eeb9a67e..addff6bde 100644 --- a/src/core.js +++ b/src/core.js @@ -280,7 +280,7 @@ jQuery.extend = jQuery.fn.extend = function() { clone = src; } else if ( jQuery.isArray(copy) ) { clone = []; - } else if ( jQuery.isObject(copy) ) { + } else if ( jQuery.isObjectLiteral(copy) ) { clone = {}; } else { clone = copy; @@ -323,7 +323,7 @@ jQuery.extend({ return toString.call(obj) === "[object Array]"; }, - isObject: function( obj ) { + isObjectLiteral: function( obj ) { if ( toString.call(obj) !== "[object Object]" ) { return false; }