Skip to content

Commit

Permalink
Renamed isObject to isObjectLiteral to be more specific.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeresig committed Nov 11, 2009
1 parent a8b089a commit 4b55e94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core.js
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 4b55e94

Please sign in to comment.