$('.posts li img').each(function() {
if( this.complete )
imageResize($(this), 64, 64);
else
$(this).load(imageResize($(this), 64, 64));
});
I tried adding “alert(‘test’)” to imageResize(), but it isn’t working. Is there any reason why imageResize() isn’t being called?
Make it a function: