Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
3560 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
0
Jun 19
3474
0
Apr 25
1308
1
Sep 23
7417
2
Jan 19
4038
2
Feb 18
10647