Skip to main content

Bug Tracker

Side navigation

Ticket #4262: eq.patch
File eq.patch, 0.3 KB (added by ricardobeat, February 26, 2009 09:58PM UTC)

patch

Index: jquery/src/core.js
===================================================================
--- jquery/src/core.js	(revision 6263)
+++ jquery/src/core.js	(working copy)
@@ -498,7 +498,7 @@
 	},
 
 	eq: function( i ) {
-		return this.slice( i, +i + 1 );
+		return this.pushStack( this[i], 'eq', i );
 	},
 
 	slice: function() {

Download in other formats:

Original Format