D
D
deonnis52016-12-14 12:36:52
ExtJS/Sencha
deonnis5, 2016-12-14 12:36:52

How (in ext js 2) to stub the method in the sources and rewrite it to your own?

How (in ext js 2) to stub the method in the sources and rewrite it to your own? For example in ext-all-debug.js I need to rewrite the method:
// private
doMultiSelection : function(item, index, e){
if(e.shiftKey && this.last !== false){
var last = this.last;
this.selectRange(last, index, e.shiftKey);
this.last = last; // reset the last
}else{
if((e.ctrlKey||this.simpleSelect) && this.isSelected(index)){
this.deselect(index);
}else{
this.select(index, e.ctrlKey || e.shiftKey || this.simpleSelect);
}
}
},

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question