jquery.stickOnScroll
jquery.stickOnScroll copied to clipboard
Enhancement: Provide a .destroy() method for the widget
Provide a way for the widget to be destroyed on a given element, in order to ensure that instances that were applied to dynamic viewports (ex. page Dialog widgets) can be removed by the callee explicitly.
Alternative? As an alternative, also look into periodically run through the set of viewports and remove all bound instances if the viewport is not longer in DOM. This approach could be dangerous, since user could have detach() element from DOM temporarily.