mirror of
https://github.com/pinry/pinry.git
synced 2025-11-15 17:35: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
|
// Delete pin if trash icon clicked
|
||||||
$('.icon-trash').each(function() {
|
$('.icon-trash').each(function() {
|
||||||
var thisPin = $(this);
|
var thisPin = $(this);
|
||||||
|
$(this).unbind('click');
|
||||||
$(this).click(function() {
|
$(this).click(function() {
|
||||||
$(this).off('click');
|
$(this).off('click');
|
||||||
var promise = deletePinData($(this).data('id'));
|
var promise = deletePinData($(this).data('id'));
|
||||||
|
|||||||
Reference in New Issue
Block a user