set screen when appending a node.

This commit is contained in:
Christopher Jeffrey 2015-08-05 07:28:02 -07:00
parent 90c441a329
commit 730dd59b39

View File

@ -68,6 +68,7 @@ Node.prototype.insert = function(element, i) {
element.detach(); element.detach();
element.parent = this; element.parent = this;
element.screen = this.screen;
if (i === 0) { if (i === 0) {
this.children.unshift(element); this.children.unshift(element);