title: Masonry script event on layout initialization
body: <p>How to execute my function every time the <a href="http://masonry.desandro.com/" rel="nofollow">Masonry</a> script reorganize elements, when a window resized for example?
  In this example it works only first time.</p>
  
  <pre><code>$(document).ready(function()
  {
      $('#container').masonry({
       // layoutComplete: masonry_refreshed(), // &lt;-- doesn't work propriety
          itemSelector: '.item'
      });
  
      masonry_refreshed();
  });
  
  function masonry_refreshed()
  {
      alert('Masonry refreshed')
  }
  </code></pre>
  
  <p>DEMO: <a href="http://codepen.io/anon/pen/HeuKw" rel="nofollow">http://codepen.io/anon/pen/HeuKw</a></p>