* Triggered when textarea value changed. * @protected * @param {Event} evt
(evt)
| 107 | * @param {Event} evt |
| 108 | */ |
| 109 | textareaValueDidChange (evt) { |
| 110 | if (this.isDisabled()) { |
| 111 | evt.preventDefault() |
| 112 | return false |
| 113 | } |
| 114 | |
| 115 | const text = this._$textarea.value |
| 116 | |
| 117 | if (this._text !== text) { |
| 118 | this._text = text |
| 119 | |
| 120 | // notify model about text change |
| 121 | this.getModel().viewTextDidChange(this, this._text) |
| 122 | |
| 123 | this.layoutTextarea() |
| 124 | } |
| 125 | } |
| 126 | |
| 127 | /** |
| 128 | * Layouts view and its subviews. |
nothing calls this directly
no test coverage detected