Turning container into a property

This commit is contained in:
Jeff Avallone 2014-12-17 15:14:33 -05:00
parent c5c98ad62f
commit 155ad51d58
1 changed files with 8 additions and 4 deletions

View File

@ -20,9 +20,13 @@ export default class Node {
}
}
setContainer(container) {
this.container = container;
this.container.addClass(this.type);
set container(container) {
this._container = container;
this._container.addClass(this.type);
}
get container() {
return this._container;
}
getAnchor() {
@ -116,7 +120,7 @@ export default class Node {
render(container) {
if (container) {
this.setContainer(container);
this.container = container;
}
if (this.proxy) {