wandoledzep/bxslider-4 — pull request #306 by idflood (2013-08-26 09:40:54+00:00)
Title: Prevent resize from running if slider is destroyed (styles reset issue)

problem: If the slider is destroyed on a onResize the styles aren't really reset.

Hi, I have found a little bug with the destroy method. I have a website with slider on mobile size and no slider on desktop. For that I use the destroySlider method in a onResize event.

I've found that despite the `$(window).unbind('resize', resizeWindow);` called at the end of the destroy method the resizeWindow get called just one more time after that (at least on chrome 29.0.1547.57). The real problem is that the resizeWindow reapply styles to the container and the slide items, so the `removeAttr("style")` in destroySlider doesn't really work.