title: Nivoslider update or restart or even destroy
body: <p>I'm having some issues when trying to renew the nivoslider when loading dynamic content. What I need to do is update the slider when I load new content in through an <code>AJAX</code> call.</p>
  
  <p>So basically I have a div that gets new data in from a function <code>AJAX</code> call and after the load I would need the slider to reinitialize.</p>
  
  <p>What I do right now is this:</p>
  
  <pre><code>if ($('#imageSlider').find('div.nivo-slice').length &gt; 0) {
      $('#imageSlider').data('nivoslider').stop();
      $('#imageSlider').removeData('nivo:vars');
      $('#imageSlider').removeData('nivoslider');
      $('#imageSlider').attr("class","");
      $('#imageSlider').attr("style","");
  }
  
  $('#imageSlider').html(newImages);
  </code></pre>
  
  <p>and then a call to <code>$('#imageSlider').nivoSlider();</code></p>
  
  <p>It kinda works but the rotation gets stuck on one picture only and sometimes it just doesn't load. Any help on this would be greatly appreciated.</p>