Skip to content

Enhance `stop()`, `start()` to unbind/bind events

Compare
Choose a tag to compare
@lsvx lsvx released this 11 Nov 20:31
· 19 commits to master since this release

This commit expands the stop() and start() methods to account for
the scroll events associated with already postponed elements.
Previously, calling .stop() would cause postpone to stop watching for
new postponed elements but would not pause the execution of already
created scroll event callbacks. stop() now completely pauses
postpone's functionality.