git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18d3e75
)
jquery core: closes #3102, #3051. $.fn.eq() accepts a stringified integer.
author
Ariel Flesler
<aflesler@gmail.com>
Mon, 30 Jun 2008 16:17:44 +0000
(16:17 +0000)
committer
Ariel Flesler
<aflesler@gmail.com>
Mon, 30 Jun 2008 16:17:44 +0000
(16:17 +0000)
src/core.js
patch
|
blob
|
history
diff --git
a/src/core.js
b/src/core.js
index
924bf96
..
6dd7111
100644
(file)
--- a/
src/core.js
+++ b/
src/core.js
@@
-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() {