Added code to clear the text
This commit is contained in:
@@ -179,6 +179,10 @@ TextView.prototype.setText = function (text, redraw) {
|
||||
};
|
||||
|
||||
TextView.prototype.clearText = function () {
|
||||
if (this.text) {
|
||||
this.setText(this.fillChar.repeat(this.text.length));
|
||||
}
|
||||
|
||||
this.setText('');
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user