a draft of player view, debug
This commit is contained in:
parent
46560924ce
commit
c8b432fe57
13 changed files with 183 additions and 33 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue