Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
5005 Visualizzazioni

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
Abbandona
Autore Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
nov 23
38
1
mag 23
2664
0
feb 16
5800
1
apr 24
2225
1
feb 22
5442