It's redundant to check `!show` here, so this shouild be:

```
    } else if (editor.hintShown) {
```