Allow to find the corresponding collection from the store.

This commit is contained in:
Mitar
2015-12-20 12:33:54 +01:00
parent 482111f731
commit aee6d2ef63

View File

@@ -209,6 +209,11 @@ Mongo.Collection = function (name, options) {
getDoc: function(id) {
return self.findOne(id);
},
// To be able to get back to the collection from the store.
_getCollection: function () {
return self;
}
});
if (!ok)