Commits

rocco_storm committed 0a5ed2b

remove doubled event listeners

  • Participants
  • Parent commits 9bbc0d1

Comments (0)

Files changed (1)

File pinry/static/js/pinry.js

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