Skip to Content
Menú
This question has been flagged
1 Respondre
4941 Vistes

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 ? 

Avatar
Descartar
Autor Best Answer

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

})

Avatar
Descartar
Related Posts Respostes Vistes Activitat
0
de nov. 23
38
1
de maig 23
2607
0
de febr. 16
5757
1
d’abr. 24
2172
1
de febr. 22
5405