title: Rebuilding a jQuery slick carousel after AJAX call; "unslick" not working
body: <p>I am using the slick carousel plug-in defined here:</p>
  
  <p><a href="http://kenwheeler.github.io/slick/" rel="nofollow">http://kenwheeler.github.io/slick/</a></p>
  
  <p>My carousel resides within content that is refreshed by an AJAX call. When the call returns, I attempt this within the .complete method, after I have replaced the content:</p>
  
  <pre><code>$('.thumbnails')
  .slick('unslick')
  .slick({ ... });
  </code></pre>
  
  <p>where "..." is the same set of parameters used to build the original carousel.</p>
  
  <p>The problem is that slick.js is throwing an error:</p>
  
  <pre><code>TypeError: _[i].slick is undefined
  ret = _[i].slick[opt].apply(_[i].slick, args);
  </code></pre>
  
  <p>where "opt" is apparently "unslick", at least according to my debug attempts.</p>
  
  <p>If I omit the "unslick" method, then I don't get an error message, but my carousel appears with a full extra set of images; they are all squashed together and overlay one another, until I navigate to a new slide, and then things straighten themselves out ... but I really don't want the old images, just the new ones in the AJAX content.</p>