Seems like the click function isn't being binded at all, anyone know why?
<img src='img.jpg'/>
$("img").each(function(){
var src = $(this).attr('src');
var img = new Image();
img.src = src;
img.onLoad = function(){
$(this).click(function(){ alert( 'loaded' }); // < not binding
}
});
Don't know what else to try.