diff --git a/addon/hint/show-hint.js b/addon/hint/show-hint.js index edd10705e4c826376ced2257de48505b9ecf77ce..d228fc88909cb89da6948792d00bdd3e24ef439b 100644 --- a/addon/hint/show-hint.js +++ b/addon/hint/show-hint.js @@ -61,8 +61,8 @@ this.tick = null; 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.widget.close(); CodeMirror.signal(this.cm, "endCompletion", this.cm); },