use jQuery.off() instead od deprecated .unbind() function

This commit is contained in:
Rober Torkuhl
2013-03-09 21:59:39 +01:00
parent 0a5ed2b049
commit 812358e31b

View File

@@ -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();
});