bkad / prat

group chat with markdown served over websockets
11 stars 6 forks source link

JS collection error #76

Open cespare opened 11 years ago

cespare commented 11 years ago

Just noticed a JS error a couple of times as I was messing around with various stuff.

Uncaught TypeError: Cannot read property 'collection' of undefined

I think the second time it was triggered after I closed several channels. I don't remember what I was doing the first time.

Stack trace shows that it's coming from user_statuses.coffee, line 86:

collection.remove(data.user.email)

I think the email isn't in the collection when that's called.