Skip to content
Snippets Groups Projects
Commit 426822e9 authored by Marijn Haverbeke's avatar Marijn Haverbeke
Browse files

[show-hint addon] Fix bug that prevented close event from firing

Issue #3243
parent fbd336f3
No related branches found
No related tags found
No related merge requests found
...@@ -61,8 +61,8 @@ ...@@ -61,8 +61,8 @@
this.tick = null; this.tick = null;
this.cm.off("cursorActivity", this.activityFunc); this.cm.off("cursorActivity", this.activityFunc);
if (this.widget) this.widget.close();
if (this.widget && this.data) CodeMirror.signal(this.data, "close"); if (this.widget && this.data) CodeMirror.signal(this.data, "close");
if (this.widget) this.widget.close();
CodeMirror.signal(this.cm, "endCompletion", this.cm); CodeMirror.signal(this.cm, "endCompletion", this.cm);
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment