How to execute my function every time the Masonry script reorganize elements, when a window resized for example? In this example it works only first time.
$(document).ready(function()
{
$('#container').masonry({
// layoutComplete: masonry_refreshed(), // <-- doesn't work propriety
itemSelector: '.item'
});
masonry_refreshed();
});
function masonry_refreshed()
{
alert('Masonry refreshed')
}