You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
The key has expired.
New Features:
Added "Reset" support, which will force any object to be reset back to its original value when a change is detected.
Added "Cancel On Change" support, which will force a watch to cancel when the first change is detected in an object.
Added "Maximum Changes Before Canceling" support, which states how many changes are allowed before a watch is cancelled.
Added "Starts" support, which states a date/time a watch should be started.
Binding Options / Function Options:
Added a new binding/option called "reset", which states if an object should be reset back to its original value when a change is detected (defaults to false).
Added a new binding/option called "cancelOnChange", which states if a watch should be cancelled when the first change is detected (defaults to false).
Added a new binding/option called "maximumChangesBeforeCanceling", which states the total number of changes allowed before a watch is cancelled (defaults to 0, which for off).
Added a new binding/option called "starts", which states the date/time a watch should start (defaults to null).
Renamed the binding/option "observeTimeout" to "timeout".
Binding Options / Function Options - Custom Triggers:
Added a new binding/option custom trigger called "onCancel", which states an event that should be triggered when a watch is cancelled.
Public Functions:
Added new public function "getWatch()", which is used to return all the watch properties for an object being watched.
Removed the public function "cancelDomElementWatch()", as "cancelWatch()" will now do it for you.
Watching:
Changes are now detected for HTML DOM element objects when attributes are updated.
General Improvements:
Refactored lots of the internal code to align with the naming of the areas.
Documentation:
Fixed some of the documentation referencing the wrong properties.
Fixes:
Fixed the "expires" binding/option not accurately checking the expired date and time.
Fixed a script error that occurred sometimes when a watch is cancelled using the public function "cancelWatch()".