콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
5200 화면

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 ? 

아바타
취소
작성자 베스트 답변

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

})

아바타
취소
관련 게시물 답글 화면 활동
0
11월 23
38
1
5월 23
2799
0
2월 16
5957
1
4월 24
2369
1
2월 22
5617