Logo white

Administrator / auto-life

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • auto-life
  • bower_components
  • jquery
  • src
  • traversing
  • var
  • siblings.js
  • finish work part 1
    f6e211e4
    Administrator authored
    2016-03-05 22:20:44 +0200  
    Browse Code ยป
siblings.js 203 Bytes
Edit Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
define( function() {

return function( n, elem ) {
	var matched = [];

	for ( ; n; n = n.nextSibling ) {
		if ( n.nodeType === 1 && n !== elem ) {
			matched.push( n );
		}
	}

	return matched;
};

} );