1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-07-26 04:28:31 +00:00

Clean up a bunch of linting stuff. Clean up event listeners in tooltips to stop potential memory leaks.

This commit is contained in:
SirStendec 2018-04-02 03:30:22 -04:00
parent f506b512b4
commit 7ecd45fcfb
23 changed files with 70 additions and 79 deletions

View file

@ -277,10 +277,9 @@ export default class MainMenu extends Module {
if ( has(def, 'default') && ! has(tok, 'default') ) {
const def_type = typeof def.default;
if ( def_type === 'object' ) {
// TODO: Better way to deep copy this object.
tok.default = JSON.parse(JSON.stringify(def.default));
} else
if ( def_type === 'object' )
tok.default = deep_copy(def.default);
else
tok.default = def.default;
}
@ -338,7 +337,7 @@ export default class MainMenu extends Module {
let p = parent;
while(p && p.search_terms) {
p.search_terms += '\n' + terms;
p.search_terms += `\n${terms}`;
p = p.parent;
}
}