changed behaviour
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user