Skip to Content
Menu
This question has been flagged
1 Odpoveď
4908 Zobrazenia

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
Zrušiť
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
Zrušiť
Related Posts Replies Zobrazenia Aktivita
0
nov 23
38
1
máj 23
2582
0
feb 16
5721
1
apr 24
2149
1
feb 22
5375