hi Dave, thanks a lot for the feedback. The reason i'm not using the dom but rather more "conceptual" objects is because the application is quite complex, and its easier for my small brain to keep track of all variables as object properties.
On Fri, Jan 2, 2009 at 2:02 AM, Dave Methvin <dave.meth...@gmail.com> wrote: > > Whoops, I missed the original issue, which was that setInterval needs > to be told its this object. > > So change this: > > this.interval = setInterval(function(){ > $.log('datascape.move : mouseX = ' + this.mouseX); > }, 1000); > > to this: > > var self = this; > this.interval = setInterval(function(){ > $.log('datascape.move : mouseX = ' + self.mouseX); > }, 1000); >