Minor bug: draw appears to be grayed out in this code line: .on(‘word’, draw);
see code behind cloud cell:
Minor bug: draw appears to be grayed out in this code line: .on(‘word’, draw);
see code behind cloud cell:
Yep, unfortunately that one has an existing issue in CodeMirror and no clear strategy for a fix, because hoisting requires CodeMirror to color something differently based on code that comes after it.
Workaround: don’t ever use the bare function foo(bar) {}
syntax. Instead assign functions to variables like const foo = function foo(bar) {}
.
Hoisting is a pain to reason about even for humans.