Added code to clear the text
This commit is contained in:
parent
19ee4b0553
commit
5180447e87
|
@ -179,6 +179,10 @@ TextView.prototype.setText = function (text, redraw) {
|
||||||
};
|
};
|
||||||
|
|
||||||
TextView.prototype.clearText = function () {
|
TextView.prototype.clearText = function () {
|
||||||
|
if (this.text) {
|
||||||
|
this.setText(' '.repeat(this.text.length));
|
||||||
|
}
|
||||||
|
|
||||||
this.setText('');
|
this.setText('');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue