git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
jquery core: closes #3102, #3051. $.fn.eq() accepts a stringified integer.
[jquery.git]
/
src
/
core.js
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() {