我想覆盖 Ext.grid.column.Column 类的 initComponent() 方法。但是它是如何执行所有这些行的。基本上我想从元素中删除侦听器并将其分配给其他元素。
Ext.override(Ext.grid.column.Column,
{
initComponent: function(){
.
. //All lines are as it is till me.callParents();
.
.
.
.
.
.
.
// Initialize as a HeaderContainer
me.callParent(arguments);
me.on({ <<<------------------------------Do not need these.
element: 'el',
click: me.onElClick,
dblclick: me.onElDblClick,
scope: me
});
me.on({ <<<------------------------------Do not need these.
element: 'titleEl',
mouseenter: me.onTitleMouseOver,
mouseleave: me.onTitleMouseOut,
scope: me
});
}
}
我不想将听众附加到“el”和“titleEl”,所以我删除了这些行。但是一些它仍然如何添加侦听器。我还在 AfterRender 函数中写了 me.un() 。即使它为“El”和“titleEl”添加了监听器
谁能指导我哪里错了??????