Merge pull request #2023 from thelounge/xpaw/textcomplete-null
Fix textcomplete reference in autocompletion.disable
This commit is contained in:
commit
4f737ce5bb
@ -16,7 +16,11 @@ module.exports = {
|
|||||||
disable: () => {
|
disable: () => {
|
||||||
input.unbind("input.tabcomplete");
|
input.unbind("input.tabcomplete");
|
||||||
Mousetrap(input.get(0)).unbind("tab", "keydown");
|
Mousetrap(input.get(0)).unbind("tab", "keydown");
|
||||||
|
|
||||||
|
if (textcomplete) {
|
||||||
textcomplete.destroy();
|
textcomplete.destroy();
|
||||||
|
textcomplete = null;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user