Skip to content

Commit

Permalink
Stop updating when deleting the last account.
Browse files Browse the repository at this point in the history
  • Loading branch information
Fred Wenzel committed May 8, 2014
1 parent 8130039 commit af5315d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,13 @@
lis.splice(i, 1);
$('#main').appendChild(delButton);
li.parentNode.removeChild(li);
})

//refresh
if (accounts.length === 0) {
stopUpdating();
}
})
});

var pressTimer;
$('#accounts').addEventListener('pointerup', function() {
window.clearTimeout(pressTimer);
Expand Down

0 comments on commit af5315d

Please sign in to comment.