2
0
mirror of https://github.com/embarklabs/neo-blessed.git synced 2025-01-12 03:54:23 +00:00

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

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