code: function getView(inner, type) { //view.get(inner, type)
  		if (!type) {
  			// view.get(type)
  			type = inner;
  			inner = undefined;
  		}
  
  		var views, i, l, found,
  			view = this,
  			root = !type || type === "root";
  			// If type is undefined, returns root view (view under top view).
  
  		if (inner) {
  			// Go through views - this one, and all nested ones, depth-first - and return first one with given type.
  			found = view.type === type ? view : undefined;
  			if (!found) {
  				views = view.views;
  				if (view._.useKey) {
  					for (i in views) {
  						if (found = views[i].get(inner, type)) {
  							break;
  						}
  					}
  				} else for (i = 0, l = views.length; !found && i < l; i++) {
  					found = views[i].get(inner, type);
  				}
  			}
  		} else if (root) {
  			// Find root view. (view whose parent is top view)
  			while (view.parent.parent) {
  				found = view = view.parent;
  			}
  		} else while (view && !found) {
  			// Go through views - this one, and all parent ones - and return first one with given type.
  			found = view.type === type ? view : undefined;
  			view = view.parent;
  		}
  		return found;
  	}
docs: ========= View.get =========