diff options
Diffstat (limited to 'node_modules/jquery/src/traversing/var/siblings.js')
-rw-r--r-- | node_modules/jquery/src/traversing/var/siblings.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/node_modules/jquery/src/traversing/var/siblings.js b/node_modules/jquery/src/traversing/var/siblings.js new file mode 100644 index 0000000000..8a8880bf74 --- /dev/null +++ b/node_modules/jquery/src/traversing/var/siblings.js @@ -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; +}; + +} ); |