Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
3557 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
čvn 19
3465
0
dub 25
1297
1
zář 23
7409
2
led 19
4035
2
úno 18
10638