remove doubled event listeners

This commit is contained in:
Rober Torkuhl
2013-03-09 21:39:40 +01:00
parent 9bbc0d19ce
commit 0a5ed2b049

View File

@@ -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'));