I am trying to initialise and destroy a mCustomScrollBar scrollbar plugin depending on the window\'s width (some jquery in an es6 app, traspiled using webpack/babel). However I
I have solved the problem, somehow my subconscious forgot Javascript was case sensitive... the function should read:
$(scrollPane).mCustomScrollbar();
not
$(scrollPane).mCustomScrollBar();
smh!!!