From 5eddd2aed29795ca713e6641baeb0b118c5c1f3b Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Tue, 5 May 2015 23:10:18 -0700 Subject: [PATCH] whitespace. comments. --- lib/widget.js | 5 ----- lib/widgets/box.js | 4 ++++ lib/widgets/button.js | 4 ++++ lib/widgets/checkbox.js | 4 ++++ lib/widgets/element.js | 4 ++++ lib/widgets/filemanager.js | 4 ++++ lib/widgets/form.js | 4 ++++ lib/widgets/image.js | 4 ++++ lib/widgets/input.js | 4 ++++ lib/widgets/line.js | 4 ++++ lib/widgets/list.js | 4 ++++ lib/widgets/listbar.js | 4 ++++ lib/widgets/listtable.js | 4 ++++ lib/widgets/loading.js | 4 ++++ lib/widgets/log.js | 4 ++++ lib/widgets/message.js | 4 ++++ lib/widgets/node.js | 4 ++++ lib/widgets/progressbar.js | 4 ++++ lib/widgets/prompt.js | 4 ++++ lib/widgets/question.js | 4 ++++ lib/widgets/radiobutton.js | 4 ++++ lib/widgets/radioset.js | 4 ++++ lib/widgets/screen.js | 4 ++++ lib/widgets/scrollablebox.js | 4 ++++ lib/widgets/scrollabletext.js | 4 ++++ lib/widgets/table.js | 4 ++++ lib/widgets/terminal.js | 4 ++++ lib/widgets/text.js | 4 ++++ lib/widgets/textarea.js | 4 ++++ lib/widgets/textbox.js | 4 ++++ 30 files changed, 116 insertions(+), 5 deletions(-) diff --git a/lib/widget.js b/lib/widget.js index 46449bb..743f397 100644 --- a/lib/widget.js +++ b/lib/widget.js @@ -20,22 +20,17 @@ exports.Textbox = exports.textbox = require('./widgets/textbox'); exports.Button = exports.button = require('./widgets/button'); exports.ProgressBar = exports.progressbar = require('./widgets/progressbar'); exports.FileManager = exports.filemanager = require('./widgets/filemanager'); - exports.Checkbox = exports.checkbox = require('./widgets/checkbox'); exports.RadioSet = exports.radioset = require('./widgets/radioset'); exports.RadioButton = exports.radiobutton = require('./widgets/radiobutton'); - exports.Prompt = exports.prompt = require('./widgets/prompt'); exports.Question = exports.question = require('./widgets/question'); exports.Message = exports.message = require('./widgets/message'); exports.Loading = exports.loading = require('./widgets/loading'); exports.Listbar = exports.listbar = require('./widgets/listbar'); - exports.Log = exports.log = require('./widgets/log'); exports.Table = exports.table = require('./widgets/table'); exports.ListTable = exports.listtable = require('./widgets/listtable'); - exports.Terminal = exports.terminal = require('./widgets/terminal'); exports.Image = exports.image = require('./widgets/image'); - exports.helpers = require('./helpers'); diff --git a/lib/widgets/box.js b/lib/widgets/box.js index bb7ca3d..259be75 100644 --- a/lib/widgets/box.js +++ b/lib/widgets/box.js @@ -29,4 +29,8 @@ Box.prototype.__proto__ = Element.prototype; Box.prototype.type = 'box'; +/** + * Expose + */ + module.exports = Box; diff --git a/lib/widgets/button.js b/lib/widgets/button.js index 3d2a553..5afb674 100644 --- a/lib/widgets/button.js +++ b/lib/widgets/button.js @@ -57,4 +57,8 @@ Button.prototype.press = function() { return result; }; +/** + * Expose + */ + module.exports = Button; diff --git a/lib/widgets/checkbox.js b/lib/widgets/checkbox.js index 3e1efc8..36d5ef6 100644 --- a/lib/widgets/checkbox.js +++ b/lib/widgets/checkbox.js @@ -86,4 +86,8 @@ Checkbox.prototype.toggle = function() { : this.check(); }; +/** + * Expose + */ + module.exports = Checkbox; diff --git a/lib/widgets/element.js b/lib/widgets/element.js index c0872e7..e0c23f1 100644 --- a/lib/widgets/element.js +++ b/lib/widgets/element.js @@ -2650,4 +2650,8 @@ Element.prototype.screenshot = function(xi, xl, yi, yl) { return this.screen.screenshot(xi, xl, yi, yl); }; +/** + * Expose + */ + module.exports = Element; diff --git a/lib/widgets/filemanager.js b/lib/widgets/filemanager.js index 39caae9..25a63b6 100644 --- a/lib/widgets/filemanager.js +++ b/lib/widgets/filemanager.js @@ -205,4 +205,8 @@ FileManager.prototype.reset = function(cwd, callback) { this.refresh(callback); }; +/** + * Expose + */ + module.exports = FileManager; diff --git a/lib/widgets/form.js b/lib/widgets/form.js index 26c7038..5e00b39 100644 --- a/lib/widgets/form.js +++ b/lib/widgets/form.js @@ -263,4 +263,8 @@ Form.prototype.reset = function() { this.emit('reset'); }; +/** + * Expose + */ + module.exports = Form; diff --git a/lib/widgets/image.js b/lib/widgets/image.js index e4014c6..f831bc5 100644 --- a/lib/widgets/image.js +++ b/lib/widgets/image.js @@ -718,4 +718,8 @@ Image.prototype.displayImage = function(callback) { return this.screen.displayImage(this.file, callback); }; +/** + * Expose + */ + module.exports = Image; diff --git a/lib/widgets/input.js b/lib/widgets/input.js index 1291fa2..c5c150b 100644 --- a/lib/widgets/input.js +++ b/lib/widgets/input.js @@ -29,4 +29,8 @@ Input.prototype.__proto__ = Box.prototype; Input.prototype.type = 'input'; +/** + * Expose + */ + module.exports = Input; diff --git a/lib/widgets/line.js b/lib/widgets/line.js index 59e52b3..be53240 100644 --- a/lib/widgets/line.js +++ b/lib/widgets/line.js @@ -53,4 +53,8 @@ Line.prototype.__proto__ = Box.prototype; Line.prototype.type = 'line'; +/** + * Expose + */ + module.exports = Line; diff --git a/lib/widgets/list.js b/lib/widgets/list.js index e6596c6..6cd67a3 100644 --- a/lib/widgets/list.js +++ b/lib/widgets/list.js @@ -511,4 +511,8 @@ List.prototype.cancelSelected = function(i) { this.emit('cancel'); }; +/** + * Expose + */ + module.exports = List; diff --git a/lib/widgets/listbar.js b/lib/widgets/listbar.js index af05cb5..2f6ff71 100644 --- a/lib/widgets/listbar.js +++ b/lib/widgets/listbar.js @@ -393,4 +393,8 @@ Listbar.prototype.selectTab = function(index) { this.emit('select tab', item, index); }; +/** + * Expose + */ + module.exports = Listbar; diff --git a/lib/widgets/listtable.js b/lib/widgets/listtable.js index e680fee..4ad9af2 100644 --- a/lib/widgets/listtable.js +++ b/lib/widgets/listtable.js @@ -235,4 +235,8 @@ ListTable.prototype.render = function() { return coords; }; +/** + * Expose + */ + module.exports = ListTable; diff --git a/lib/widgets/loading.js b/lib/widgets/loading.js index 3f06894..a602853 100644 --- a/lib/widgets/loading.js +++ b/lib/widgets/loading.js @@ -85,4 +85,8 @@ Loading.prototype.stop = function() { this.screen.render(); }; +/** + * Expose + */ + module.exports = Loading; diff --git a/lib/widgets/log.js b/lib/widgets/log.js index e700c3d..a6268f9 100644 --- a/lib/widgets/log.js +++ b/lib/widgets/log.js @@ -78,4 +78,8 @@ Log.prototype.scroll = function(offset, always) { return ret; }; +/** + * Expose + */ + module.exports = Log; diff --git a/lib/widgets/message.js b/lib/widgets/message.js index 2e70425..26dbfa9 100644 --- a/lib/widgets/message.js +++ b/lib/widgets/message.js @@ -119,4 +119,8 @@ Message.prototype.error = function(text, time, callback) { return this.display('{red-fg}Error: ' + text + '{/red-fg}', time, callback); }; +/** + * Expose + */ + module.exports = Message; diff --git a/lib/widgets/node.js b/lib/widgets/node.js index b3ebf88..3936b14 100644 --- a/lib/widgets/node.js +++ b/lib/widgets/node.js @@ -228,4 +228,8 @@ Node.prototype.set = function(name, value) { return this.data[name] = value; }; +/** + * Expose + */ + module.exports = Node; diff --git a/lib/widgets/progressbar.js b/lib/widgets/progressbar.js index 5e12431..0abc561 100644 --- a/lib/widgets/progressbar.js +++ b/lib/widgets/progressbar.js @@ -152,4 +152,8 @@ ProgressBar.prototype.reset = function() { this.value = this.filled; }; +/** + * Expose + */ + module.exports = ProgressBar; diff --git a/lib/widgets/prompt.js b/lib/widgets/prompt.js index 04b05fb..361b408 100644 --- a/lib/widgets/prompt.js +++ b/lib/widgets/prompt.js @@ -117,4 +117,8 @@ Prompt.prototype.readInput = function(text, value, callback) { this.screen.render(); }; +/** + * Expose + */ + module.exports = Prompt; diff --git a/lib/widgets/question.js b/lib/widgets/question.js index 7dd96fc..5e7f5f9 100644 --- a/lib/widgets/question.js +++ b/lib/widgets/question.js @@ -113,4 +113,8 @@ Question.prototype.ask = function(text, callback) { this.screen.render(); }; +/** + * Expose + */ + module.exports = Question; diff --git a/lib/widgets/radiobutton.js b/lib/widgets/radiobutton.js index b62e93f..ca2a998 100644 --- a/lib/widgets/radiobutton.js +++ b/lib/widgets/radiobutton.js @@ -56,4 +56,8 @@ RadioButton.prototype.render = function() { RadioButton.prototype.toggle = RadioButton.prototype.check; +/** + * Expose + */ + module.exports = RadioButton; diff --git a/lib/widgets/radioset.js b/lib/widgets/radioset.js index 0461d67..cdedcac 100644 --- a/lib/widgets/radioset.js +++ b/lib/widgets/radioset.js @@ -31,4 +31,8 @@ RadioSet.prototype.__proto__ = Box.prototype; RadioSet.prototype.type = 'radio-set'; +/** + * Expose + */ + module.exports = RadioSet; diff --git a/lib/widgets/screen.js b/lib/widgets/screen.js index 906dc56..1561527 100644 --- a/lib/widgets/screen.js +++ b/lib/widgets/screen.js @@ -2151,4 +2151,8 @@ Object.keys(angleTable).forEach(function(key) { delete angleTable[key]; }); +/** + * Expose + */ + module.exports = Screen; diff --git a/lib/widgets/scrollablebox.js b/lib/widgets/scrollablebox.js index c78f86d..daf760c 100644 --- a/lib/widgets/scrollablebox.js +++ b/lib/widgets/scrollablebox.js @@ -384,4 +384,8 @@ ScrollableBox.prototype.setScrollPerc = function(i) { return this.scrollTo((i / 100) * m | 0); }; +/** + * Expose + */ + module.exports = ScrollableBox; diff --git a/lib/widgets/scrollabletext.js b/lib/widgets/scrollabletext.js index 2e27bc0..46d58de 100644 --- a/lib/widgets/scrollabletext.js +++ b/lib/widgets/scrollabletext.js @@ -30,4 +30,8 @@ ScrollableText.prototype.__proto__ = ScrollableBox.prototype; ScrollableText.prototype.type = 'scrollable-text'; +/** + * Expose + */ + module.exports = ScrollableText; diff --git a/lib/widgets/table.js b/lib/widgets/table.js index 68e3c82..6db4983 100644 --- a/lib/widgets/table.js +++ b/lib/widgets/table.js @@ -327,4 +327,8 @@ Table.prototype.render = function() { return coords; }; +/** + * Expose + */ + module.exports = Table; diff --git a/lib/widgets/terminal.js b/lib/widgets/terminal.js index bcdce31..75eed9e 100644 --- a/lib/widgets/terminal.js +++ b/lib/widgets/terminal.js @@ -377,4 +377,8 @@ Terminal.prototype.screenshot = function(xi, xl, yi, yl) { return this.screen.screenshot(xi, xl, yi, yl, this.term); }; +/** + * Expose + */ + module.exports = Terminal; diff --git a/lib/widgets/text.js b/lib/widgets/text.js index f912c29..6020ebc 100644 --- a/lib/widgets/text.js +++ b/lib/widgets/text.js @@ -30,4 +30,8 @@ Text.prototype.__proto__ = Element.prototype; Text.prototype.type = 'text'; +/** + * Expose + */ + module.exports = Text; diff --git a/lib/widgets/textarea.js b/lib/widgets/textarea.js index cace23a..1acf79a 100644 --- a/lib/widgets/textarea.js +++ b/lib/widgets/textarea.js @@ -337,4 +337,8 @@ Textarea.prototype.readEditor = function(callback) { }); }; +/** + * Expose + */ + module.exports = Textarea; diff --git a/lib/widgets/textbox.js b/lib/widgets/textbox.js index 13be880..425ff32 100644 --- a/lib/widgets/textbox.js +++ b/lib/widgets/textbox.js @@ -74,4 +74,8 @@ Textbox.prototype.submit = function() { return this.__listener('\r', { name: 'enter' }); }; +/** + * Expose + */ + module.exports = Textbox;