Remove unused variables

This commit is contained in:
Rob Garrison 2017-07-16 14:40:13 -05:00
parent 417e3b5de3
commit 8cfb37351d
4 changed files with 7 additions and 7 deletions

View File

@ -26,7 +26,7 @@ chrome.webNavigation.onHistoryStateUpdated.addListener(data =>
chrome.webNavigation.onReferenceFragmentUpdated.addListener(data => chrome.webNavigation.onReferenceFragmentUpdated.addListener(data =>
webNavigationListener('styleReplaceAll', data)); webNavigationListener('styleReplaceAll', data));
chrome.tabs.onAttached.addListener((tabId, data) => { chrome.tabs.onAttached.addListener(tabId => {
// When an edit page gets attached or detached, remember its state // When an edit page gets attached or detached, remember its state
// so we can do the same to the next one to open. // so we can do the same to the next one to open.
chrome.tabs.get(tabId, tab => { chrome.tabs.get(tabId, tab => {

View File

@ -831,8 +831,8 @@ function setupGlobalSearch() {
return; return;
} }
// hide the first two dialogs (replace, replaceWith) // hide the first two dialogs (replace, replaceWith)
cm.openDialog = (tmpl, callback, opt) => { cm.openDialog = (tmpl, callback) => {
cm.openDialog = (tmpl, callback, opt) => { cm.openDialog = (tmpl, callback) => {
cm.openDialog = originalOpenDialog; cm.openDialog = originalOpenDialog;
if (all) { if (all) {
callback(replacement); callback(replacement);

View File

@ -195,7 +195,7 @@ function importFromString(jsonString) {
contents: report.length ? report : t('importReportUnchanged'), contents: report.length ? report : t('importReportUnchanged'),
buttons: [t('confirmOK'), numChanged && t('undo')], buttons: [t('confirmOK'), numChanged && t('undo')],
onshow: bindClick, onshow: bindClick,
}).then(({button, enter, esc}) => { }).then(({button}) => {
if (button === 1) { if (button === 1) {
undo(); undo();
} }
@ -241,7 +241,7 @@ function importFromString(jsonString) {
} }
} }
function bindClick(box) { function bindClick() {
const highlightElement = event => { const highlightElement = event => {
const styleElement = $('#style-' + event.target.dataset.id); const styleElement = $('#style-' + event.target.dataset.id);
if (styleElement) { if (styleElement) {
@ -367,7 +367,7 @@ Object.assign(document.body, {
this.classList.remove('fadeout'); this.classList.remove('fadeout');
} }
}, },
ondragend(event) { ondragend() {
animateElement(this, {className: 'fadeout', removeExtraClasses: ['dropzone']}).then(() => { animateElement(this, {className: 'fadeout', removeExtraClasses: ['dropzone']}).then(() => {
this.style.animationDuration = ''; this.style.animationDuration = '';
}); });

View File

@ -360,7 +360,7 @@ Object.assign(handleEvent, {
className: 'danger center', className: 'danger center',
buttons: [t('confirmDelete'), t('confirmCancel')], buttons: [t('confirmDelete'), t('confirmCancel')],
}) })
.then(({button, enter, esc}) => { .then(({button, enter}) => {
if (button === 0 || enter) { if (button === 0 || enter) {
deleteStyleSafe({id}); deleteStyleSafe({id});
} }