Skip to Content
Menu
This question has been flagged

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
Discard
Author 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
Discard
Related Posts Replies Views Activity
0
Nov 23
38
1
May 23
1483
0
Feb 16
4823
1
Apr 24
1019
1
Feb 22
4418