Public methods that are specific to the instance defined by the selector?
Hi!
I'm currently working on the next version of the plugin Smooth Div Scroll and since I have received a lot of requests regarding public methods for controlling different aspects of the plugin, I'm at the moment focusing on that.
I have searched the web for all I can find regarding public methods in jQuery plugins and found several useful pages. The problem is that when I implement the functions, they are global, not specific to the instance defined by the selector.
With Smooth Div Scroll a user can implement several independent scrollers on the same page and it would be nice if it was possible to tell one of the scrollers to stop scrolling by calling a public method. I haven't succeeded in implementing this. My best attempt resulted in all instances being stopped when calling the method.
Any pointers, suggestions or links to useful pages would be greatly appreciated!
Best regards,
Thomas Kahn