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

Hello community ,


I'm trying to extend this class to add some functions exports.Order = Backbone.Model.extend({ it is difrrent from the most of the classes how we can extend this type of classes ? 

Аватар
Отменить
Автор Лучший ответ

I've found  a solution for people who need  this:


var models = require('point_of_sale.models');

models.Order = models.Order.extend({

// your code here

})

Аватар
Отменить
Related Posts Ответы Просмотры Активность
0
нояб. 23
38
1
мая 23
2572
0
февр. 16
5692
1
апр. 24
2142
1
февр. 22
5368