sp-magic.de/bower_components/jquery/src/traversing/var/siblings.js

18 lines
218 B
JavaScript
Raw Normal View History

2016-10-28 17:56:41 +00:00
define( function() {
2016-11-22 23:12:51 +00:00
"use strict";
2016-10-28 17:56:41 +00:00
return function( n, elem ) {
var matched = [];
for ( ; n; n = n.nextSibling ) {
if ( n.nodeType === 1 && n !== elem ) {
matched.push( n );
}
}
return matched;
};
} );