lib/packages/core-classes.js
function(depth) {

		var root = this;

		while (depth > 0) {

			root = root.getParentView();

			if (!root) Lava.t("Error evaluating depth: parent view does not exist");

			depth--;

		}

		return root;

	}
function(depth) {

		var root = this;

		while (depth > 0) {

			root = root.getParentView();

			if (!root) Lava.t("Error evaluating depth: parent view does not exist");

			depth--;

		}

		return root;

	}
function ( depth ) { var root = this ; while ( depth > 0 ) { root = root . getParentView ( ) ; if ( ! root ) Lava . t ( "Error evaluating depth: parent view does not exist" ) ; depth -- ; } return root ; }
Get N'th parent of the view
@param {number} depth The number of view's parent you want to get
@returns {Lava.view.Abstract}
Get N th parent of the view