PDA

View Full Version : Menu.item hidden property undefined?



SlashEMc2k
23 Nov 2007, 10:40 AM
console.log(tree.getSelectionModel().getSelectedNode().hidden);


I have tried the disabled and rendered properties and they return boolean values.
But if I try and return hidden is comes back as undefined?
Is this a bug?

I had a quick look through the debug code but to me hidden should be set to true.
Can someone test this on rc1 or tell me what silly thing I`m doing wrong?

Thanks

tryanDLS
23 Nov 2007, 11:12 AM
There is no public property of TreeNode called hidden. It's used internally by the object and isn't set true/false unless something explicitly calls show or hide.

SlashEMc2k
23 Nov 2007, 11:25 AM
Thanks Tryan;
I see my brain has stopped working again :)
I had tree in my code but what I was meant to be checking was the menu item.:">

I need more coffee ~o)