mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Move _collections into static namespace
This commit is contained in:
@@ -27,12 +27,6 @@ export function warnUsingOldApi(methodName, collectionName, isCalledFromAsync) {
|
||||
*/
|
||||
Mongo = {};
|
||||
|
||||
/**
|
||||
* @summary A record of all defined collections
|
||||
* @type {Map<string, Mongo.Collection>}
|
||||
*/
|
||||
Mongo._collections = new Map();
|
||||
|
||||
/**
|
||||
* @summary Constructor for a Collection
|
||||
* @locus Anywhere
|
||||
@@ -529,6 +523,13 @@ Object.assign(Mongo.Collection, {
|
||||
|
||||
return selector;
|
||||
},
|
||||
|
||||
/**
|
||||
* @summary A record of all defined Mongo.Collection instances, indexed by collection name.
|
||||
* @type {Map<string, Mongo.Collection>}
|
||||
* @protected
|
||||
*/
|
||||
_collections: new Map(),
|
||||
});
|
||||
|
||||
Object.assign(Mongo.Collection.prototype, {
|
||||
|
||||
Reference in New Issue
Block a user