Skip to content

Commit 2cf2913

Browse files
jasonsanjosemarijnh
authored andcommitted
widget.remove() should be widget.clear()
1 parent 7f64ae4 commit 2cf2913

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/codemirror.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2604,7 +2604,7 @@ window.CodeMirror = (function() {
26042604
return addLineWidget(this, handle, node, options);
26052605
}),
26062606

2607-
removeLineWidget: function(widget) { widget.remove(); },
2607+
removeLineWidget: function(widget) { widget.clear(); },
26082608

26092609
lineInfo: function(line) {
26102610
if (typeof line == "number") {

0 commit comments

Comments
 (0)