PDA

View Full Version : Override is the only solution?



Grimsk
16 Aug 2007, 8:58 AM
I have a custom class Ext.albumAdminTree
this class extend ...

Ext.extend(Ext.albumAdminTree, Ext.tree.TreePanel, {

for my custome tree and only this tree i want to add a callback on a function defined in
Ext.tree.DefaultSelectionMode

code is from ext-debug-all.js line 18450 v1.1


Ext.extend(Ext.tree.DefaultSelectionModel, Ext.util.Observable, {
onKeyDown : function(e){


i cant use


Ext.override(Ext.tree.DefaultSelectionModel,{
onKeyDown : function(e){

cause its gonna override all tree

and cant override the Ext.albumAdminTree... cause its not a function from this class...

what should i do ?