(origin:string = "+delete")
| 970 | } |
| 971 | |
| 972 | clear(origin:string = "+delete") { |
| 973 | if(!this.marker) return; |
| 974 | |
| 975 | // If the line is still in the document, clear its classes. |
| 976 | let loc = this.find(); |
| 977 | if(loc) { |
| 978 | clearLineClasses(loc.from.line, loc.to.line, this.editor, this); |
| 979 | } |
| 980 | super.clear(origin); |
| 981 | |
| 982 | if(this.commentWidget) { |
| 983 | this.commentWidget.clear(); |
| 984 | this.commentElem.textContent = ""; |
| 985 | } |
| 986 | } |
| 987 | |
| 988 | refresh() { |
| 989 | let loc = this.find(); |
no test coverage detected