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
export default watch=function(a){const b=function(){};let c=new b;for(let d in c.values={},c.listening={},a)a.hasOwnProperty(d)&&(c.values[d]=a[d],Object.defineProperty(c,d,{set:function(e){this.values[d]=e,this.listening[d]&&this.listening[d](e)},get:function(){return this.values[d]}}));return b.prototype.addListener=function(d,e){for(let f in c.values){if(!c.values.hasOwnProperty(d))throw"Watch function - listener variable '"+d+"' don't exist on the proxy watcher";return c.values.hasOwnProperty(f)&&f==d&&(c.listening[f]=e),c.listening[f]}},b.prototype.removeListener=function(d){for(let e in c.listening)c.listening.hasOwnProperty(e)&&c.listening[e]===d&&(c.listening[e]=null,delete c.listening[e])},c};