///
///
Umbraco.Sys.registerNamespace("Umbraco.Controls");
Umbraco.Controls.NodeDefinition = function() {
///
/// An object that defines the details of a current node selected in the tree.
/// Contains the logic to modify the html markup of a node such as styles.
///
return {
jsTree: null,
jsNode: null,
nodeId: null,
nodeName: null,
nodeType: null,
sourceUrl: null,
menu: null,
treeType: null,
_isDebug: false,
updateDefinition: function(jsTree, jsNode, nodeId, nodeName, nodeType, sourceUrl, menu, treeType) {
///
/// Updates the current objects properties at one time
///
/// A reference to the current node's jsTree
/// A reference to the jquery li node
/// The node id of the node
/// The node name of the node
/// The node type/tree type of the node
this.jsTree = jsTree;
this.jsNode = jsNode;
this.nodeId = nodeId;
this.nodeName = nodeName;
this.nodeType = nodeType;
this.sourceUrl = sourceUrl;
this.menu = menu;
this.treeType = treeType;
this._debug("updateDefinition: " + nodeId + ", " + nodeName + ", " + nodeType);
},
_debug: function(strMsg) {
if (this._isDebug) {
Sys.Debug.trace("NodeDefinition: " + strMsg);
}
}
}
}