Fix setText('')/clearText() issue with text views

This commit is contained in:
Bryan Ashby 2017-01-28 12:48:04 -07:00
parent 12d4c158c4
commit 8aa42342a2
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ TextView.prototype.redraw = function() {
// and there is no actual text (e.g. save SGR's and processing) // and there is no actual text (e.g. save SGR's and processing)
// //
if(!this.hasDrawnOnce) { if(!this.hasDrawnOnce) {
if(!this.text) { if(_.isUndefined(this.text)) {
return; return;
} }
} }