How can I get all of the tree leafs from a tree ??
var mods = $('#westMenu').tree('getRoots');
$(mods).each(function(){
function iter(mod){
$(mod.children).each(function(){
var men = $(this);
if(men[0].children) iter(men[0].children);
else cl(men);
})
}
var mod = $(this)[0];
iter(mod);
})
This does not seem to work !