using part of gentelella
This commit is contained in:
15
docs/gentelella/vendors/jquery/src/traversing/var/siblings.js
vendored
Normal file
15
docs/gentelella/vendors/jquery/src/traversing/var/siblings.js
vendored
Normal file
@@ -0,0 +1,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;
|
||||
};
|
||||
|
||||
} );
|
||||
Reference in New Issue
Block a user