Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
3603 Представления

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.

Аватар
Отменить
Related Posts Ответы Просмотры Активность
0
июн. 19
3544
0
апр. 25
1541
1
сент. 23
7539
2
янв. 19
4137
2
февр. 18
10803