Commit 4b55e94d authored by John Resig's avatar John Resig

Renamed isObject to isObjectLiteral to be more specific.

parent a8b089a0
...@@ -280,7 +280,7 @@ jQuery.extend = jQuery.fn.extend = function() { ...@@ -280,7 +280,7 @@ jQuery.extend = jQuery.fn.extend = function() {
clone = src; clone = src;
} else if ( jQuery.isArray(copy) ) { } else if ( jQuery.isArray(copy) ) {
clone = []; clone = [];
} else if ( jQuery.isObject(copy) ) { } else if ( jQuery.isObjectLiteral(copy) ) {
clone = {}; clone = {};
} else { } else {
clone = copy; clone = copy;
...@@ -323,7 +323,7 @@ jQuery.extend({ ...@@ -323,7 +323,7 @@ jQuery.extend({
return toString.call(obj) === "[object Array]"; return toString.call(obj) === "[object Array]";
}, },
isObject: function( obj ) { isObjectLiteral: function( obj ) {
if ( toString.call(obj) !== "[object Object]" ) { if ( toString.call(obj) !== "[object Object]" ) {
return false; return false;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment