vendor/assets/elfinder_OLD/js/elfinder.full.js
function(files, opts) {
		var self    = this,
			cwd     = this.getUI('cwd'),
			cwdHash = this.cwd().hash,
			newItem = $();
		
		opts = opts || {};
		
		$.each(files, function(i, f) {
			if (f.phash === cwdHash || self.searchStatus.state > 1) {
				newItem = newItem.add(cwd.find('#'+self.cwdHash2Id(f.hash)));
				if (opts.firstOnly) {
					return false;
				}
			}
		});
		
		return newItem;
	}
function(files, opts) {
		var self    = this,
			cwd     = this.getUI('cwd'),
			cwdHash = this.cwd().hash,
			newItem = $();
		
		opts = opts || {};
		
		$.each(files, function(i, f) {
			if (f.phash === cwdHash || self.searchStatus.state > 1) {
				newItem = newItem.add(cwd.find('#'+self.cwdHash2Id(f.hash)));
				if (opts.firstOnly) {
					return false;
				}
			}
		});
		
		return newItem;
	}
function ( files , opts ) { var self = this , cwd = this . getUI ( 'cwd' ) , cwdHash = this . cwd ( ) . hash , newItem = $ ( ) ; opts = opts || { } ; $ . each ( files , function ( i , f ) { if ( f . phash === cwdHash || self . searchStatus . state > 1 ) { newItem = newItem . add ( cwd . find ( '#' + self . cwdHash2Id ( f . hash ) ) ) ; if ( opts . firstOnly ) { return false ; } } } ) ; return newItem ; }
Find cwd's nodes from files

@param  Array    files
@param  Object   opts   {firstOnly: true|false}
Find cwd s nodes from files