0
0
mirror of https://github.com/salesagility/SuiteCRM.git synced 2024-11-24 08:36:48 +00:00
salesagility_SuiteCRM/jssource/src_files/include/ytree/TreeView/RootNode.js
2013-09-23 20:30:44 +01:00

31 lines
818 B
JavaScript
Executable File

/* Copyright (c) 2006 Yahoo! Inc. All rights reserved. */
/**
* A custom YAHOO.widget.Node that handles the unique nature of
* the virtual, presentationless root node.
*
* @extends YAHOO.widget.Node
* @constructor
*/
YAHOO.widget.RootNode = function(oTree) {
// Initialize the node with null params. The root node is a
// special case where the node has no presentation. So we have
// to alter the standard properties a bit.
this.init(null, null, true);
/**
* For the root node, we get the tree reference from as a param
* to the constructor instead of from the parent element.
*
* @type TreeView
*/
this.tree = oTree;
};
YAHOO.widget.RootNode.prototype = new YAHOO.widget.Node();
// overrides YAHOO.widget.Node
YAHOO.widget.RootNode.prototype.getNodeHtml = function() {
return "";
};