跳至内容
菜单
此问题已终结
1 回复
3602 查看

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.

形象
丢弃
最佳答案

Hello,

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

Thanks in advance.

形象
丢弃
相关帖文 回复 查看 活动
0
6月 19
3541
0
4月 25
1529
1
9月 23
7534
2
1月 19
4134
2
2月 18
10797