diff --git a/src/scripts/search.tag b/src/scripts/search.tag index 500b5c2..d954f11 100644 --- a/src/scripts/search.tag +++ b/src/scripts/search.tag @@ -36,10 +36,10 @@ -var showedHelp = false; +this.showedHelp = false; function showHelp() { - if (!showedHelp) { + if (!this.showedHelp) { this.opts.showHelp = true; this.update(); } @@ -47,7 +47,7 @@ function showHelp() { function clearHelp() { this.opts.showHelp = false; - showedHelp = true; + this.showedHelp = true; this.update(); }