Skip to content

Observe.js v0.5.0 - Specific properties watching! New triggers! Fixes!

Compare
Choose a tag to compare
@williamtroup williamtroup released this 05 Jan 12:20
· 107 commits to main since this release
ef6983b

New Features:

  • Added specific properties watch support! This will only watch for changes in specific properties on an object, instead of all of them by default.

Binding Options / Function Options:

  • Added a new binding/option called "propertyNames", which states the property names that should be watched for changes (defaults to all).

Binding Options / Function Options - Custom Triggers:

  • Added a new binding/option custom trigger called "onRemove", which states an event that should be triggered when a DOM element is removed.

Public Functions:

  • Added new public function "resumeWatch()", which is used to resume a watch that has been paused.

Fixes:

  • Fixed a fault that allowed comparisons between arrays and objects (was causing some script errors).

Documentation:

  • Fixed some of the documentation mistakes.