I think the default TreePanel has a default listener for 'onclick' which responds alike:
if(node == 'open') {
closeNode();
}
else {
openNode();
}
so double clicking would first open it on the first click and then closing it on the second.
You should add a listeners to the treepanel's like so:
new Ext.tree.AsyncTreeNode({
expanded: true,
children: [{
text: 'Menu Option 1',
leaf: true
}, {
text: 'Menu Option 2',
leaf: true
}, {
text: 'Menu Option 3',
leaf: true
}]
}),
rootVisible: false,
listeners: {
click: function(n) {
return false;
},
dblclick: function(n) {
Ext.Msg.alert('Navigation Tree Click',
'You clicked: "' + n.attributes.text + '"');
}
}