Turning container into a property

This commit is contained in:
Jeff Avallone 2014-12-17 15:14:33 -05:00
parent c5c98ad62f
commit 155ad51d58

View File

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