skiadas / PanthR

Statistics front-end and webserver with R connection
1 stars 2 forks source link

"this" is wrong in db's 'connect' event #39

Closed skiadas closed 11 years ago

skiadas commented 11 years ago

In the callback provided to db.open around line 48 of db.js, the references to "this" don't point to our object any more. Need to use one of the techniques to ensure the proper "this".

skiadas commented 11 years ago

the this.emit in there is still a problem