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 =>
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
// so we can do the same to the next one to open.
chrome.tabs.get(tabId, tab => {

View File

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

View File

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

View File

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