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(){});
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: