Wpis z mikrobloga

#javascript
czy mam tutaj gdzieś błąd?

function Module(idMaster, nPage, textFrames) {
this.indesign = {
idMaster: idMaster,
page: nPage,
control: ""
},
this.reg = {},
this.textFrames = textFrames || [];
this.source = {
marka: "",
nazwa: "",
opis: "",
warunek: ""
},
this.show = {},
this.bools = {
UPmainLine_equal_sign: false,
UPmainLine_equal_pattern: false
},
this.type = -1;
this.weights = [],
this.errors = [];
}
  • 1
@Primek_1980: nie wiem, ale widać, że mieszasz przecinki ze średnikami:

function Module(idMaster, nPage, textFrames) {
this.indesign = {
idMaster: idMaster,
page: nPage,
control: ""
};
this.reg = {};
this.textFrames = textFrames || [];
this.source = {
marka: "",
nazwa: "",
opis: "",
warunek: ""
};
this.show = {};
this.bools = {
UPmainLine_equal_sign: false,
UPmainLine_equal_pattern: false
};
this.type = -1;
this.weights = [];
this.errors = [];
}