using the browser side version of watch.js.
in the html head:
<script type="text/javascript" src="S/watch.js"></script>
In the javascript:
var here={'now':'somewhere'}
watch(here,['now'],function(){
console.log('home changed: '+here.now);
});
here.now='somewhere else';
I get this error looping over and over and over:
Uncaught TypeError: Cannot read property 'undefined' of undefined watch.js:345
the error show to be coming from here - watch.js code:
var loop = function(){
for(var i in lengthsubjects){
var subj = lengthsubjects[i];
var difference = getObjDiff(subj.obj[subj.prop], subj.actual); <-watch.js:345
why does this happen?
Update
Even if I watch nothing and only add the script to the head it still does the same errors infinatly