(origin:string = "+delete")
| 885 | } |
| 886 | |
| 887 | clear(origin:string = "+delete") { |
| 888 | if(!this.marker) return; |
| 889 | |
| 890 | // If the line is still in the document, clear its classes. |
| 891 | let loc = this.find(); |
| 892 | if(loc) { |
| 893 | clearLineClasses(loc.from.line, loc.to.line, this.editor, this); |
| 894 | } |
| 895 | super.clear(origin); |
| 896 | if(this.annotation) { |
| 897 | this.annotation.clear(); |
| 898 | this.annotation = undefined; |
| 899 | } |
| 900 | |
| 901 | if(this.commentWidget) { |
| 902 | this.commentWidget.clear(); |
| 903 | this.commentElem.textContent = ""; |
| 904 | } |
| 905 | } |
| 906 | |
| 907 | refresh() { |
| 908 | let loc = this.find(); |
no test coverage detected