Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
3600 Vizualizări

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.

Imagine profil
Abandonează
Cel mai bun răspuns

Hello,

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

Thanks in advance.

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
iun. 19
3538
0
apr. 25
1528
1
sept. 23
7534
2
ian. 19
4128
2
feb. 18
10796