(from:Position, to:Position, origin = "+input")
| 865 | commentElem?: HTMLElement; |
| 866 | |
| 867 | apply(from:Position, to:Position, origin = "+input") { |
| 868 | this.lineBackgroundClass = "COMMENT_" + this.kind; |
| 869 | this._attributes.className = this.type + " " + this.kind; |
| 870 | |
| 871 | if(!this.commentElem) { |
| 872 | this.commentElem = document.createElement("div"); |
| 873 | } |
| 874 | |
| 875 | this.commentElem.className = "comment-widget" + " " + this.kind; |
| 876 | |
| 877 | if(this.editor.inCodeBlock(to)) { |
| 878 | this.commentElem.className += " code-comment-widget"; |
| 879 | } |
| 880 | |
| 881 | if(this.source.delay) { |
| 882 | this["updateWidget"] = debounce(this.updateWidget, this.source.delay); |
| 883 | } |
| 884 | super.apply(from, to, origin); |
| 885 | } |
| 886 | |
| 887 | clear(origin:string = "+delete") { |
| 888 | if(!this.marker) return; |
nothing calls this directly
no test coverage detected