Skip to Content
Menú
This question has been flagged
1 Respondre
3505 Vistes

Dear Community,

I want to override reset function of NumpadState and call it in my own template. I tried below code:

var _super_numpad = models.NumpadState.prototype;

models.NumpadState = models.NumpadState.extend({
    reset: function() {
        _super_numpad.reset.apply(this,arguments)
        this.set({
            buffer: "0",
            mode: ""
        });
    }
});

But this doesn't help me out.

Can anyone provide me a solution for this and also how can I call this function in my custom template?

Thanks in advance.

Avatar
Descartar
Best Answer

Hello,

It's been a while but ,did you find a solution to this problem? If yes , can you share it ? 

Thanks in advance.

Avatar
Descartar
Related Posts Respostes Vistes Activitat
0
de juny 19
3414
0
d’abr. 25
1170
1
de set. 23
7308
2
de gen. 19
3979
2
de febr. 18
10557