aboutsummaryrefslogtreecommitdiffstats
path: root/src/jquery
diff options
context:
space:
mode:
Diffstat (limited to 'src/jquery')
-rw-r--r--src/jquery/jquery.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js
index 53ffc16e1..44eedf252 100644
--- a/src/jquery/jquery.js
+++ b/src/jquery/jquery.js
@@ -1648,12 +1648,8 @@ jQuery.extend({
">|/", "jQuery.sibling(a.firstChild)",
"\\+", "jQuery.sibling(a).next",
"~", function(a){
- var r = [];
var s = jQuery.sibling(a);
- if ( s.n > 0 )
- for ( var i = s.n; i < s.length; i++ )
- r.push( s[i] );
- return r;
+ return s.n >= 0 ? s.slice(s.n+1) : [];
}
],