derbyjs / racer

Realtime model synchronization engine for Node.js
1.19k stars 118 forks source link

Unable to unsubscribe queries #53

Closed reneclaus closed 11 years ago

reneclaus commented 11 years ago

When unsubscribing queries I get the error 'ReferenceError: queryJson is not defined'

The error is in unregisterSubscribe

I tried fixing the error, but the entire unsubscribe call chain is full of bugs (at least for queries) and I don't understand how it's supposed to work so I can't fix it.

To test this you can simply define any query and then run:

var q = model.query('row').all(); //my test query
model.subscribe(q, function(){});
model.unsubscribe(q, function(){});
nateps commented 11 years ago

No longer relevant in 0.5