javascript - How do you check if a Meteor.Collection is synchronized? -


in application, have object fields meteor.collections, of not yet saved on server. example:

var tables = {}; tables["existent"] = new meteor.collection("existent"); // existent on server tables["nonexistent"] = new meteor.collection(null); // nonexistent on server 

i need check if collection exists on server. there other way check that, other attaching flag each collection?

i discovered collections have field, _name, name passed constructor stored. therefore, if check collection._name, should return name passed (if initialized one), , null otherwise.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -