Owl Carousel 2 bug report
HTML
<script src="https://rawgit.com/OwlFonk/OwlCarousel2/develop/src/js/owl.carousel.js"></script>
<script src="https://rawgit.com/OwlFonk/OwlCarousel2/develop/src/js/owl.lazyload.js"></script>
<script src="https://rawgit.com/OwlFonk/OwlCarousel2/develop/src/js/owl.autoheight.js"></script>
<script src="https://rawgit.com/OwlFonk/OwlCarousel2/develop/src/js/owl.video.js"></script>
<script src="https://rawgit.com/OwlFonk/OwlCarousel2/develop/src/js/owl.animate.js"></script>
<script src="https://rawgit.com/OwlFonk/OwlCarousel2/develop/src/js/owl.autoplay.js"></script>
<script src="https://rawgit.com/OwlFonk/OwlCarousel2/develop/src/js/owl.navigation.js"></script>
<script src="https://rawgit.com/OwlFonk/OwlCarousel2/develop/src/js/owl.hash.js"></script>
<link rel="stylesheet" href="https://rawgit.com/OwlFonk/OwlCarousel2/develop/src/css/owl.carousel.css">
<link rel="stylesheet" href="https://rawgit.com/OwlFonk/OwlCarousel2/develop/src/css/owl.lazyload.css">
<link rel="stylesheet" href="https://rawgit.com/OwlFonk/OwlCarousel2/develop/src/css/owl.animate.css">
<link rel="stylesheet" href="https://rawgit.com/OwlFonk/OwlCarousel2/develop/src/css/owl.autoheight.css">
<script src="https://rawgit.com/OwlFonk/OwlCarousel2/develop/src/js/owl.support.js"></script>
<h1>Owl Carousel 2.0.0 throws error when resizing the window after destroying a carousel</h1>
<p>Bug from <a href="https://github.com/OwlFonk/OwlCarousel2/issues/485">Destroy on resize issue</a> / <a href="http://jsfiddle.net/lmeurs/7ph5s5me/">other fiddle</a> seems solved in later dev version (automatically loaded as external resource).</p>
<p>Try resizing the window after the carousel has been destroyed, no errors are thrown.</p>
<div class="owl-carousel">
<div class="item">
<img src="http://placehold.it/350x150&text=1" />
</div>
<div class="item">
<img src="http://placehold.it/350x150&text=2" />
</div>
<div class="item">
<img src="http://placehold.it/350x150&text=3" />
...
JavaScript
$(function () {
$('.owl-carousel').owlCarousel();
setTimeout(function() {
$('.owl-carousel').trigger('destroy.owl.carousel');
}, 4000);
});