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
{{ message }}
This repository has been archived by the owner on Mar 22, 2022. It is now read-only.
Hi,
I understand your concern but the best I can do is check if it is a jQuery Object and throw an specific exception telling that you should observe only your own objects.
jQuery objects are huge and with a lot of cyclic references. The idea of Watch.JS is to use in your own objects. I think you should use the jquery event features.
When i do this:
Throws a error:
TypeError: obj.watchers[prop].push is not a function
watch.js (line 258)
obj.watchers[prop].push(watcher); //add the new watcher in the watchers array
The text was updated successfully, but these errors were encountered: