Skip to content
Permalink
Browse files

Renamed isObject to isObjectLiteral to be more specific.

  • Loading branch information
jeresig committed Nov 11, 2009
1 parent a8b089a commit 4b55e94d0849568a2fd121952f13a9d6571c731f
Showing with 2 additions and 2 deletions.
  1. +2 −2 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;
}

0 comments on commit 4b55e94

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