more .eslintrc.json and fixes

This commit is contained in:
YFdyh000
2017-07-09 06:12:28 +08:00
parent a547c672e7
commit 4af2a8a028
9 changed files with 51 additions and 7 deletions
+2 -2
View File
@@ -27,7 +27,7 @@ function initialize() {
var gettingAllStorageItems = browser.storage.local.get(null);
gettingAllStorageItems.then((results) => {
var noteKeys = Object.keys(results);
for(noteKey of noteKeys) {
for (let noteKey of noteKeys) {
var curValue = results[noteKey];
displayNote(noteKey,curValue);
}
@@ -89,7 +89,7 @@ function displayNote(title, body) {
/* set up listener for the delete functionality */
deleteBtn.addEventListener('click',(e) => {
evtTgt = e.target;
const evtTgt = e.target;
evtTgt.parentNode.parentNode.parentNode.removeChild(evtTgt.parentNode.parentNode);
browser.storage.local.remove(title);
})