jquery core: closes #3102, #3051. $.fn.eq() accepts a stringified integer.
authorAriel Flesler <aflesler@gmail.com>
Mon, 30 Jun 2008 16:17:44 +0000 (16:17 +0000)
committerAriel Flesler <aflesler@gmail.com>
Mon, 30 Jun 2008 16:17:44 +0000 (16:17 +0000)
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() {