jQuery-slimScroll
jQuery-slimScroll copied to clipboard
Destroy does not work in minified version
When I'm using the minified version of slimScroll (jquery.slimscroll.min.js) .slimScroll({destroy: true}) is not working. In jquery.slimscroll.js it works fine.
+1 In my case slimScroll plugin creates new instance of 'slimScrollDiv' without deleting old one. But there is no issue in non minified version of plugin.
Thanks @YozhEzhi, probably an issue with the minification process. Will look into that.
When destroying with the unminitfied version. The styles "overflow:hidden; width: auto; height: 300 px ..." will be left in the element. This have an bad effect if the element was like height: auto. You preserve the "old" values. I fixed it with $('scrollelement').removeAttr('style'), but this is a bad solution.
+1 "issue with the minification process" confirmed :)