Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
4823 Widoki

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 ? 

Awatar
Odrzuć
Autor Najlepsza odpowiedź

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

})

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
lis 23
38
1
maj 23
2510
0
lut 16
5620
1
kwi 24
2040
1
lut 22
5275