]> source.dussan.org Git - jquery.git/commitdiff
Renamed isObject to isObjectLiteral to be more specific.
authorJohn Resig <jeresig@gmail.com>
Wed, 11 Nov 2009 04:07:05 +0000 (23:07 -0500)
committerJohn Resig <jeresig@gmail.com>
Wed, 11 Nov 2009 04:07:05 +0000 (23:07 -0500)
src/core.js

index 6eeb9a67eca4c3e1f808c7f3eb22ef8fef840c00..addff6bde760d48b93867cd265474229b22b54d6 100644 (file)
@@ -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;
                }