From 812358e31b95079d71eec7a1706d1dcfc8585a69 Mon Sep 17 00:00:00 2001 From: Rober Torkuhl Date: Sat, 9 Mar 2013 21:59:39 +0100 Subject: [PATCH] use jQuery.off() instead od deprecated .unbind() function --- pinry/static/js/pinry.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pinry/static/js/pinry.js b/pinry/static/js/pinry.js index db3a02e..3c0cb52 100644 --- a/pinry/static/js/pinry.js +++ b/pinry/static/js/pinry.js @@ -51,7 +51,7 @@ $(window).load(function() { // Delete pin if trash icon clicked $('.icon-trash').each(function() { var thisPin = $(this); - $(this).unbind('click'); + $(this).off('click'); $(this).click(function() { $(this).off('click'); var promise = deletePinData($(this).data('id')); @@ -69,7 +69,7 @@ $(window).load(function() { $('.pin').each(function(){ var thisPin = $(this); thisPin.find('.editable').hide(); - thisPin.unbind('hover'); + thisPin.off('hover'); thisPin.hover(function() { thisPin.find('.editable').toggle(); });