This commit is contained in:
Brandon Aaron 2006-11-15 15:53:14 +00:00
parent db621dd8dd
commit f12df1df85

View file

@ -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) : [];
}
],