ziedmahdi
ziedmahdi
after defining a new local collection: `var collection = new Mongo.Collection(null);` and assigning a name for it: `collection._name = collection._collection.name = 'a_name_so_i_can_get_it'`; we can later retrieve it with: `var sameCollection...
Replaced the `document.getElementById` by `Template.instance().find` to make sure that the input values will be fetched from the same template where the click fired.
Some times apps load the data using methods instead of publications. This patch will allow the developer to easily know if the client is waiting on any method.