Skip to content

Commit

Permalink
fix: #57; cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
cch5ng committed Mar 30, 2017
1 parent edff5ac commit 95c4f95
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/components/Favorites.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,21 +83,14 @@ class Favorites extends Component {
*
*/
handleRemoveList(e) {
console.log('clicked remove icon');
console.log('e.target.id: ' + e.target.id);
const keyRemove = e.target.id;
let that = this;

localforage.removeItem(keyRemove).then(function() {
// Run this code once the key has been removed.
console.log('Key is cleared!');

var savedLists = [];
var renderSavedLists = [];

// The same code, but using ES6 Promises.
localforage.iterate(function(value, key, iterationNumber) {

savedLists.push([key, value]);
}).then(function() {
renderSavedLists = savedLists.map((list) => {
Expand Down

0 comments on commit 95c4f95

Please sign in to comment.