a draft of player view, debug

This commit is contained in:
Blue 2018-10-29 00:32:44 +03:00 committed by Gitea
parent 46560924ce
commit c8b432fe57
13 changed files with 183 additions and 33 deletions

View file

@ -4,7 +4,7 @@ var Subscribable = require("../utils/subscribable");
var LocalModel = Subscribable.inherit({
"className": "LocalModel",
"constructor": function(properties) {
"constructor": function(properties, data) {
Subscribable.fn.constructor.call(this);
this.properties = [];
@ -18,6 +18,11 @@ var LocalModel = Subscribable.inherit({
}
}
}
if (data !== undefined) {
this.data = data;
this.initialized = true;
}
},
"setData": function(data) {
this.data = data;