text: routes[i].name_, itemId:routes[i].obj_id_, name:routes[i].proj_id_, leaf: true, listeners: { click: function(){ console.log("ddd"); } }
var treePanel = new Ext.tree.Panel({ ... listeners : { itemclick : function () { alert(1) } }, ... });