title: reload layout in Masonry
body: <p>I am using the masonry control with require.js and I have situation where I need reload the masonary controls.</p>
  
  <p>I was looking at <a href="https://stackoverflow.com/questions/14942897/height-of-hidden-div-doesnt-expand-with-masonry-content">this entry,</a> but I keep on getting object not found exception.</p>
  
  <p>Here is my code to load the masonary:</p>
  
  <pre><code>masnorySet = function () {
              var container = document.querySelector('.pinStyle');
              var msnry = new Masonry(container, {
                  columnWidth: 1,
                  itemSelector: '.item'
              });
              msnry.layout();
          },
  reloadMasnory = function () {
              //var container = document.querySelector('.pinStyle');
              //https://stackoverflow.com/questions/14942897/height-of-hidden-div-doesnt-expand-with-masonry-content
          },
  </code></pre>
  
  <p>This is how I load it as module:</p>
  
  <pre><code>requirejs.config({
      paths: {
          "masonry": "../../../../lib/masonry.pkgd",
  
     }
  });
  </code></pre>
  
  <p><strong>THE QUESTION IS: how do I call the reload method given the way I am using masonary control?</strong></p>