changed behaviour

This commit is contained in:
TLRZ Seyfferth
2018-01-25 11:29:48 +01:00
parent e379ef8c29
commit cc4201f2b5
6 changed files with 115 additions and 19 deletions
+8
View File
@@ -1,5 +1,6 @@
function Article() {
this.name = "";
this.short = "";
this.dimension = "";
this.content = {
size : 0,
@@ -19,6 +20,12 @@ Article.prototype = {
set Name(value) {
this.name = value;
},
get Short() {
return this.short;
},
set Short(value) {
this.short = value;
},
get ContentSize() {
return this.content.size;
},
@@ -61,6 +68,7 @@ Article.thaw = function (json) {
var article = new Article();
article.id = json.id;
article.Name = json.name;
article.Short = json.short;
article.Dimension = json.dimension;
article.ContentSize = json.content.size;
article.PortionPrice = json.portion.price;