I am debugging this code. I would like to know how to see which handler is attached to img
.
img.unbind('error').bind('error', function() {
img.unbind('error').attr('src', 'img/cover-empty.png');
});
I would like print the result using console.log()