From 1872f1406d3068cc984a19ab4401813bd03c8a07 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Fri, 16 Jan 2015 15:08:27 -0800 Subject: [PATCH] work around bad choice of method name. --- lib/widget.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/widget.js b/lib/widget.js index b2af209..7025027 100644 --- a/lib/widget.js +++ b/lib/widget.js @@ -5683,6 +5683,8 @@ Prompt.prototype.type = function(text, value, callback) { this.screen.render(); }; +Prompt.prototype.type.toString = function() { return 'prompt'; }; + /** * Question */