git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Precising the unit part of rfxnum regex
[jquery.git]
/
src
/
core.js
diff --git
a/src/core.js
b/src/core.js
index
9e1bfc6
..
18cd3a3
100644
(file)
--- a/
src/core.js
+++ b/
src/core.js
@@
-215,7
+215,7
@@
jQuery.fn = jQuery.prototype = {
this.toArray() :
// Return just the object
- ( num < 0 ? this.slice(num)[ 0 ] : this[ num ] );
+ ( num < 0 ? this[ this.length + num ] : this[ num ] );
},
// Take an array of elements and push it onto the stack