PHP Classes

File: vendors/jquery/src/traversing/var/dir.js

Recommend this page to a friend!
  Classes of Jorge Castro   Gentelella BladeOne   vendors/jquery/src/traversing/var/dir.js   Download  
File: vendors/jquery/src/traversing/var/dir.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Gentelella BladeOne
Render templates using Bootstrap for presentation
Author: By
Last change:
Date: 3 years ago
Size: 356 bytes
 

Contents

Class file image Download
define( [ "../../core" ], function( jQuery ) { return function( elem, dir, until ) { var matched = [], truncate = until !== undefined; while ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) { if ( elem.nodeType === 1 ) { if ( truncate && jQuery( elem ).is( until ) ) { break; } matched.push( elem ); } } return matched; }; } );