Commit f12df1df authored by Brandon Aaron's avatar Brandon Aaron

Fix for #310 and #395

parent db621dd8
......@@ -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) : [];
}
],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment