mirror of
https://github.com/pinry/pinry.git
synced 2025-11-15 09:25:50 +01:00
remove doubled event listeners
This commit is contained in:
@@ -51,6 +51,7 @@ $(window).load(function() {
|
||||
// Delete pin if trash icon clicked
|
||||
$('.icon-trash').each(function() {
|
||||
var thisPin = $(this);
|
||||
$(this).unbind('click');
|
||||
$(this).click(function() {
|
||||
$(this).off('click');
|
||||
var promise = deletePinData($(this).data('id'));
|
||||
|
||||
Reference in New Issue
Block a user