title: TypeError: $(...).lightGallery(...).destroy is not a function
body: <p>I am getting this error from firefox:</p>
  
  <pre><code>TypeError: $(...).lightGallery(...).destroy is not a function
  </code></pre>
  
  <p>I am using following plugin for play video and show image gallery 
  <a href="https://github.com/sachinchoolur/lightGallery" rel="nofollow">https://github.com/sachinchoolur/lightGallery</a>.</p>
  
  <p>I want re-initialize lightGallery because I am using ajax to add element dynamically in container. It was working fine with previous version of lightGallery but it is not working with current version.</p>
  
  <p>I am using following code.</p>
  
  <pre><code>// destroy previous gallery
  $("#lightGallery2").lightGallery({
    selector : '.image_gallery',
    videojs: true,
    download: false
  }).destroy();
  
  // re-initialize
  $("#lightGallery2").lightGallery({
    selector: '.image_gallery',
    videojs: true,
    download: false
  });
  </code></pre>
  
  <p>Please suggest.</p>
  
  <p>Thanks</p>