ExtJS4,如何在点击嵌套面板时获得唯一的"last"面板?

ExtJS4, how to get the only "last" panel when click on nested panels?

使用 ExtJS 4.2 和嵌套面板,当我点击一个面板时我需要得到 只有这个面板
但我目前得到这个面板及其父面板。

Here's the FIDDLE.
当您点击 "A > B > C" 时,该函数只能调用一次,以 "A > B > C" 面板作为参数。
当您点击 "A > B" 时,该函数只能调用一次,以 "A > B" 面板作为参数。
等等

我不应该知道顶级面板是顶级面板。
不仅只有一次点击,代码必须在任何面板上进行多次点击。

您需要使用 event 参数应用 click 事件,并在调用 myFonction 后立即停止它。

代码片段:

panel.on('click', function (event) {
    myFonction(panel);
    event.stopEvent();
    event.stopPropagation();
    return false;
}, this, {
    element: 'el'
});

Working Fiddle

希望这会 help/guide 你。