mirror of
https://github.com/pinry/pinry.git
synced 2026-03-16 17:10:46 +01:00
use jQuery.off() instead od deprecated .unbind() function
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user