mirror of
https://github.com/embarklabs/neo-blessed.git
synced 2025-01-10 19:16:20 +00:00
rename Screen._default.
This commit is contained in:
parent
59b13fae82
commit
8cf00fe1b7
@ -19,7 +19,7 @@ function Node(options) {
|
||||
|
||||
this.options = options || {};
|
||||
this.screen = this.screen
|
||||
|| Screen._default
|
||||
|| Screen.global
|
||||
|| (function(){throw new Error('No active screen.')})();
|
||||
this.parent = options.parent || null; // this.screen;
|
||||
this.children = [];
|
||||
@ -90,8 +90,8 @@ Node.prototype.detach = function(element) {
|
||||
function Screen(options) {
|
||||
var self = this;
|
||||
|
||||
if (!Screen._default) {
|
||||
Screen._default = this;
|
||||
if (!Screen.global) {
|
||||
Screen.global = this;
|
||||
}
|
||||
|
||||
Node.call(this, options);
|
||||
@ -139,7 +139,7 @@ function Screen(options) {
|
||||
});
|
||||
}
|
||||
|
||||
Screen._default = null;
|
||||
Screen.global = null;
|
||||
|
||||
Screen.prototype.__proto__ = Node.prototype;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user