Skip to content

Observe.js v0.4.0 - Lookup new DOM elements! Fixes and renames!

Compare
Choose a tag to compare
@williamtroup williamtroup released this 03 Jan 21:03
· 117 commits to main since this release
9f4f03c

Public Functions:

  • Added new public function "searchDomForNewWatches()", which is used to search the DOM for new elements to watch, then adds them.

BREAKING CHANGES:

  • Renamed the DOM attribute "data-observe-options" to "data-observe-watch-options".
  • Renamed the public function "watchObject()" to "watch()".

General Improvements:

  • Minor internal refactoring to make things a little clearer.

Fixes:

  • Fixed a fault that prevented the binding attribute from being removed from the DOM elements.
  • Fixed a fault that prevented changes from being detected when a DOM element is removed from the DOM.
  • Fixed some properties being assigned to internal watches when not required.