eslint: enforce use of const when variable not modified
This commit is contained in:
@@ -255,7 +255,7 @@ class EditorStartup {
|
||||
});
|
||||
|
||||
function addListenerMulti(element, eventNames, listener) {
|
||||
let events = eventNames.split(' ');
|
||||
const events = eventNames.split(' ');
|
||||
for (let i=0, iLen=events.length; i<iLen; i++) {
|
||||
element.addEventListener(events[i], listener, false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user