Fix: drop unused lastActive

This commit is contained in:
eight 2018-10-14 16:18:14 +08:00
parent 05a6208f5c
commit f133c3e67a

View File

@ -116,8 +116,6 @@ function createSection({
linter.enableForEditor(cm);
let lastActive = 0;
const section = {
id: sectionId,
el,
@ -131,7 +129,6 @@ function createSection({
isRemoved: () => removed,
onChange,
off,
getLastActive: () => lastActive,
appliesTo
};
return section;
@ -197,10 +194,6 @@ function createSection({
if (!FIREFOX) {
cm.on('mousedown', (cm, event) => toggleContextMenuDelete.call(cm, event));
}
cm.on('focus', () => {
lastActive = Date.now();
});
cm.display.wrapper.addEventListener('keydown', event =>
handleKeydown(cm, event), true);