dist/jquery.fancytree-all-deps.js
function(key, searchRoot) {
			// Search the DOM by element ID (assuming this is faster than traversing all nodes).
			var el, match;
			// TODO: use tree.keyMap if available
			// TODO: check opts.generateIds === true
			if (!searchRoot) {
				el = document.getElementById(this.options.idPrefix + key);
				if (el) {
					return el.ftnode ? el.ftnode : null;
				}
			}
			// Not found in the DOM, but still may be in an unrendered part of tree
			searchRoot = searchRoot || this.rootNode;
			match = null;
			searchRoot.visit(function(node) {
				if (node.key === key) {
					match = node;
					return false; // Stop iteration
				}
			}, true);
			return match;
		}
function(key, searchRoot) {
			// Search the DOM by element ID (assuming this is faster than traversing all nodes).
			var el, match;
			// TODO: use tree.keyMap if available
			// TODO: check opts.generateIds === true
			if (!searchRoot) {
				el = document.getElementById(this.options.idPrefix + key);
				if (el) {
					return el.ftnode ? el.ftnode : null;
				}
			}
			// Not found in the DOM, but still may be in an unrendered part of tree
			searchRoot = searchRoot || this.rootNode;
			match = null;
			searchRoot.visit(function(node) {
				if (node.key === key) {
					match = node;
					return false; // Stop iteration
				}
			}, true);
			return match;
		}
function ( key , searchRoot ) { // Search the DOM by element ID (assuming this is faster than traversing all nodes). var el , match ; // TODO: use tree.keyMap if available // TODO: check opts.generateIds === true if ( ! searchRoot ) { el = document . getElementById ( this . options . idPrefix + key ) ; if ( el ) { return el . ftnode ? el . ftnode : null ; } } // Not found in the DOM, but still may be in an unrendered part of tree searchRoot = searchRoot || this . rootNode ; match = null ; searchRoot . visit ( function ( node ) { if ( node . key === key ) { match = node ; return false ; // Stop iteration } } , true ) ; return match ; }
Return node with a given key or null if not found.

@param {string} key
@param {FancytreeNode} [searchRoot] only search below this node
@returns {FancytreeNode | null}
Return node with a given key or null if not found .