I would like to override one method
onMouseUp:function(evt){
if(evt.target===this.domNode||!this._highlighted_option){
return;
}else{
if(evt.target==this.previousButton){
this.onPage(-1);
}else{
if(evt.target==this.nextButton){
this.onPage(1);
}else{
var tgt=evt.target;
while(!tgt.item){
tgt=tgt.parentNode;
}
in my JavaScript file.
How can I do that?
Literally, overwrite it using the same object and same method name.
EDIT
After a quick google and clicking the first result, I found a very simular thread which is probably more accurate for your… “problem”: Dojo: how to use own onMove event (overwrite)