jquery core: closes #3102, #3051. $.fn.eq() accepts a stringified integer.
[jquery.git] / src / core.js
index 924bf96..6dd7111 100644 (file)
@@ -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() {