I would like to destroy the slimScroll with the following condition, it works fine.
if(this.spaceFinder(this.clippings) < this.clippings.innerHeight() ) {
this.clippings.slimScroll({destroy:true});
//remove from all childrens too..
}
But the issue is this is removing the all slimScroll objects from the children too.
so, parent and children all are destroyed, how to avoid that?
Here is my condition, I am not using the id I using the class selector here.
go live here:
http://jsfiddle.net/L6q58tf9/32/