reorganize

This commit is contained in:
Christopher Jeffrey 2013-06-03 20:33:08 -05:00
parent dbacb6f8ed
commit 1d37b2b6e2
3 changed files with 6 additions and 6 deletions

View File

@ -2638,4 +2638,10 @@ exports = Program;
exports.Program = Program;
exports.Tput = Tput;
['Screen', 'Box', 'Text', 'List'].forEach(function(key) {
exports.__defineGetter__(key, function() {
return (exports._widget || (exports._widget = require('./widget')))[key];
});
});
module.exports = exports;

View File

@ -2,12 +2,6 @@ var blessed = require('blessed')
, program = blessed()
, screen;
var high = require('blessed/lib/high');
Object.keys(high).forEach(function(key) {
blessed[key] = high[key];
});
screen = new blessed.Screen({
program: program
});