Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
4948 Zobrazení

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šit
Autor Nejlepší odpověď

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šit
Related Posts Odpovědi Zobrazení Aktivita
0
lis 23
38
1
kvě 23
2614
0
úno 16
5760
1
dub 24
2175
1
úno 22
5409