From da5b4c029b347e60616f1d9bfb9e1fef40acbc83 Mon Sep 17 00:00:00 2001 From: Rob Garrison Date: Mon, 3 Dec 2018 18:23:41 -0600 Subject: [PATCH] Remove unnecessary code --- popup.html | 2 -- popup/popup.js | 7 +------ 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/popup.html b/popup.html index 4890c313..baf48db3 100644 --- a/popup.html +++ b/popup.html @@ -31,8 +31,6 @@
- - diff --git a/popup/popup.js b/popup/popup.js index 60f0a8a1..8d53f40e 100644 --- a/popup/popup.js +++ b/popup/popup.js @@ -283,8 +283,6 @@ function createStyleElement({ config.dataset.sendMessage = JSON.stringify({method: 'openSettings'}); $('use', config).attributes['xlink:href'].nodeValue = '#svg-icon-config-uso'; } - $('.enable', entry).onclick = handleEvent.toggle; - $('.disable', entry).onclick = handleEvent.toggle; $('.delete', entry).onclick = handleEvent.delete; $('.configure', entry).onclick = handleEvent.configure; @@ -347,10 +345,7 @@ Object.assign(handleEvent, { toggle(event) { // when fired on checkbox, prevent the parent label from seeing the event, see #501 event.stopPropagation(); - API.toggleStyle( - handleEvent.getClickedStyleId(event), - this.matches('.enable') || this.checked - ); + API.toggleStyle(handleEvent.getClickedStyleId(event), this.checked); }, delete(event) {