mirror of
https://github.com/vrana/adminer.git
synced 2026-01-04 14:50:56 +01:00
JS: Use arrow functions
All function () {} left in the code reference `this` and thus couldn't use arrow functions.
This commit is contained in:
@@ -76,7 +76,7 @@ for (const el of qsa('textarea')) {
|
||||
}
|
||||
});
|
||||
cm.setSize(width, height);
|
||||
cm.on('inputRead', function () {
|
||||
cm.on('inputRead', () => {
|
||||
const token = cm.getTokenAt(cm.getCursor());
|
||||
if (/^[.`"\w]\w*$/.test(token.string)) {
|
||||
CodeMirror.commands.autocomplete(cm);
|
||||
|
||||
Reference in New Issue
Block a user