Quote:
|
Originally Posted by Stefan
I would say hotel = ""; would be enough 
(if it's a normal variable then it and all its subvars will be deleted, if it's a TStaticVar then it will be deleted after a few moments if no other variable is linking to it anymore)
For the tree view menu:
PHP Code:
function MyTreeView.onOpenMenu(node, pathname, dotname) {
if (node.nodes.size()<=0)
MyContextMenu.open(mousescreenx,mousescreeny);
}
|
Maybe I am doing it wrong:
I call it through:
PHP Code:
thiso.catchevent(name, "onOpenMenu", "onTreeView");
And I dont recieve function

. And when I put obj, in front of node.. I recieved on anything even if it wasnt the end category
PHP Code:
function onTreeView(node, pathname, dotname) {
if (node.nodes.size() <= 0)
player.chat = "test";
}