diff --git a/votinglike.js b/votinglike.js index 125bd2f..634ae28 100644 --- a/votinglike.js +++ b/votinglike.js @@ -69,6 +69,8 @@ if (!data.preventDefault) { // A handler may cancel updating the link. data.link = updateButton(element, data.newButton); + + return; } var $newButton = $(data.newButton);