Skip to content

Observe.js v0.3.0 - Pausing watches support!

Compare
Choose a tag to compare
@williamtroup williamtroup released this 03 Jan 13:21
· 127 commits to main since this release
857f6ac

New Features:

  • Added "Pause Timeout On Change" support, which will force the watch to wait a specific number of milliseconds before detecting changes again when a change is detected.

Binding Options / Function Options:

  • Added a new binding/option called "pauseTimeoutOnChange", which states the milliseconds to wait for new changes to be detected when a change is detected (defaults to 0, which is off).

Public Functions:

  • Added new public function "cancelWatches()", which is used to cancel all the watches currently running, or paused.
  • Added new public function "getWatches()", which is used to return all the watches currently running, or paused.
  • Added new public function "pauseWatch()", which is used to pause a running watch for a specific number of milliseconds.

General Improvements:

  • When the page is unloaded, all active watches are now cancelled.

Documentation:

  • Fixed some of the documentation spelling/grammar mistakes.