Fix: drop unused lastActive
This commit is contained in:
parent
05a6208f5c
commit
f133c3e67a
|
@ -116,8 +116,6 @@ function createSection({
|
||||||
|
|
||||||
linter.enableForEditor(cm);
|
linter.enableForEditor(cm);
|
||||||
|
|
||||||
let lastActive = 0;
|
|
||||||
|
|
||||||
const section = {
|
const section = {
|
||||||
id: sectionId,
|
id: sectionId,
|
||||||
el,
|
el,
|
||||||
|
@ -131,7 +129,6 @@ function createSection({
|
||||||
isRemoved: () => removed,
|
isRemoved: () => removed,
|
||||||
onChange,
|
onChange,
|
||||||
off,
|
off,
|
||||||
getLastActive: () => lastActive,
|
|
||||||
appliesTo
|
appliesTo
|
||||||
};
|
};
|
||||||
return section;
|
return section;
|
||||||
|
@ -197,10 +194,6 @@ function createSection({
|
||||||
if (!FIREFOX) {
|
if (!FIREFOX) {
|
||||||
cm.on('mousedown', (cm, event) => toggleContextMenuDelete.call(cm, event));
|
cm.on('mousedown', (cm, event) => toggleContextMenuDelete.call(cm, event));
|
||||||
}
|
}
|
||||||
cm.on('focus', () => {
|
|
||||||
lastActive = Date.now();
|
|
||||||
});
|
|
||||||
|
|
||||||
cm.display.wrapper.addEventListener('keydown', event =>
|
cm.display.wrapper.addEventListener('keydown', event =>
|
||||||
handleKeydown(cm, event), true);
|
handleKeydown(cm, event), true);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user