PDA

View Full Version : About extjs tree node destruction event question



wangkai88
13 Dec 2010, 4:24 AM
Before opening a new node the kneading board destruction, node module kneading board's mainPanel event
did not know that has thanks me to know mainPanel.destroy(); May destroy the kneading board module, but how before this is current destroys
autoScroll : true,
height : Ext.get("tree").getHeight(),
listeners : {
click : function(node, e) {
mainPanel.load({
url : node.attributes.url,
callback : function() {
if (node.parentNode == null) {
mainPanel.setTitle(rootNode.text);
} else if (node.parentNode == rootNode) {
mainPanel.setTitle(rootNode.text + ">>"
+ node.text);
} else {
mainPanel.setTitle(rootNode.text + ">>"
+ node.parentNode.text + ">>"
+ node.text);
}
},
scripts : true
});
}
},