mzubala / jquery-custom-scrollbar

189 stars 102 forks source link

Un-init method? #1

Closed paulmsmith closed 11 years ago

paulmsmith commented 11 years ago

Hi,

I love your custom scrollbar script but as part of a responsive site I need the ability to completely remove any DOM changes or events that the script has added when moving between breakpoints. I was going to use this along side jRespond.

Would it be easy for you to add such a "un-init" function/method?

mzubala commented 11 years ago

I added remove function:

$(el).customScrollbar("remove")

that removes dom changes and event bindings made by the plugin.

paulmsmith commented 11 years ago

Nice, thanks. :)