Backing out fb6c038bf00296480234c971a1664ac01ca1479e, was causing jQuery.param tests...
[jquery.git] / src / core.js
index c11133f..346e52d 100644 (file)
@@ -215,7 +215,7 @@ jQuery.fn = jQuery.prototype = {
                        this.toArray() :
 
                        // Return just the object
-                       ( num < 0 ? this.slice(num)[ 0 ] : this[ num ] );
+                       ( num < 0 ? this[ this.length + num ] : this[ num ] );
        },
 
        // Take an array of elements and push it onto the stack
@@ -532,12 +532,6 @@ jQuery.extend({
        },
 
        isEmptyObject: function( obj ) {
-
-    // Fixes #7413 Check to see if obj passes isPlainObject
-    if ( !jQuery.isPlainObject( obj ) ) {
-      return false;
-    }
-       
                for ( var name in obj ) {
                        return false;
                }
@@ -739,6 +733,7 @@ jQuery.extend({
                        }
                }
 
+               // Flatten any nested arrays
                return ret.concat.apply( [], ret );
        },