I need to create a context-menu on a tree but the contents of that tree depend on the type tree-node (folder or document). \
I can build by menu by appending items to an empty menu but I the next time I create a menu it appends to the last one so I need to clear the menu at the start of the process. This is eluding me for now.
Any hints or samples will be helpful.
EasyUI