jQuery-slimScroll icon indicating copy to clipboard operation
jQuery-slimScroll copied to clipboard

Destroy does not work in minified version

Open mikelmi opened this issue 9 years ago • 4 comments

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.

mikelmi avatar Jan 27 '16 14:01 mikelmi

+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.

YozhEzhi avatar Jan 29 '16 09:01 YozhEzhi

Thanks @YozhEzhi, probably an issue with the minification process. Will look into that.

rochal avatar Jan 29 '16 21:01 rochal

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.

christian-beckmann avatar Feb 24 '16 11:02 christian-beckmann

+1 "issue with the minification process" confirmed :)

ttrig avatar Feb 29 '16 16:02 ttrig