jquery core: Closes #3033. Removed support for .. selector on jQuery.find.
[jquery.git] / src / core.js
index 6255dc5..3a759d5 100644 (file)
@@ -266,7 +266,7 @@ jQuery.fn = jQuery.prototype = {
                        return jQuery.find( selector, elem );
                });
 
-               return this.pushStack( /[^+>] [^+>]/.test( selector ) || selector.indexOf("..") > -1 ?
+               return this.pushStack( /[^+>] [^+>]/.test( selector ) ?
                        jQuery.unique( elems ) :
                        elems );
        },
@@ -441,7 +441,7 @@ jQuery.fn = jQuery.prototype = {
        },
 
        eq: function( i ) {
-               return this.slice( i, i + 1 );
+               return this.slice( i, +i + 1 );
        },
 
        slice: function() {
@@ -1358,7 +1358,7 @@ jQuery.each([ "Height", "Width" ], function(i, name){
                                // Get or set width or height on the element
                                size == undefined ?
                                        // Get width or height on the element
-                                       (this.length ? num( this, type) : null) :
+                                       (this.length ? jQuery.css( this[0], type ) : null) :
 
                                        // Set the width or height on the element (default to pixels if value is unitless)
                                        this.css( type, size.constructor == String ? size : size + "px" );