title: Zurb Foundation javascript reInit module not working
body: <p>i'm ajaxifying a website. My menu should always be sticky (using the sticky module provided by Foundation). But it is only sticky on a regular page load, and not on ajax reload (aka when navigating on the website)<br>I'm trying to re-initialise the module when the event <code>ajaxComplete</code> happens, using the line provided in the documentation of Foundation 6: </p>
  
  <pre><code>$(document).ajaxComplete(function () {
      Foundation.reInit($('.sticky'));
      //other code
  });
  </code></pre>
  
  <p>But it doesn't seem to work, because I get this error in the console : </p>
  
  <pre><code>TypeError: Cannot read property '_init' of undefined
      at HTMLElement.&lt;anonymous&gt; (foundation.core.js:103)
      at Function.each (jquery.min.js?ver=2.1.0:2)
      at o.fn.init.each (jquery.min.js?ver=2.1.0:2)
      at Object.reInit (foundation.core.js:102)
      at HTMLDocument.&lt;anonymous&gt; (stickyfooter.js:28)
      at HTMLDocument.dispatch (jquery.min.js?ver=2.1.0:3)
      at HTMLDocument.r.handle (jquery.min.js?ver=2.1.0:3)
      at Object.trigger (jquery.min.js?ver=2.1.0:3)
      at x (jquery.min.js?ver=2.1.0:4)
      at XMLHttpRequest.&lt;anonymous&gt; (jquery.min.js?ver=2.1.0:4)
  </code></pre>
  
  <p>Which I don't understand. What does it mean ? How can I make the module work after an ajax reload ?
  The website in action : <a href="http://lesdeuxvagues.com/demo" rel="nofollow noreferrer">http://lesdeuxvagues.com/demo</a></p>