I have 2 events, one to detect window resize and other to detect the resizable stop of div.
But when I resize the div, in the console detect the window resize event.
I think that actually the safest would be to do the following:
$(window).bind('resize', function(event) { if (this == event.target) { console.log("resize"); } });