mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
remove underscore
This commit is contained in:
@@ -52,7 +52,7 @@ export class AsynchronousCursor {
|
||||
if (!doc) return null;
|
||||
doc = replaceTypes(doc, replaceMongoAtomWithMeteor);
|
||||
|
||||
if (!this._cursorDescription.options.tailable && _.has(doc, '_id')) {
|
||||
if (!this._cursorDescription.options.tailable && '_id' in doc) {
|
||||
// Did Mongo give us duplicate documents in the same cursor? If so,
|
||||
// ignore this one. (Do this before the transform, since transform might
|
||||
// return some unrelated value.) We don't do this for tailable cursors,
|
||||
@@ -127,7 +127,7 @@ export class AsynchronousCursor {
|
||||
}
|
||||
|
||||
fetch() {
|
||||
return this.map(_.identity);
|
||||
return this.map(doc => doc);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -19,7 +19,6 @@ Npm.depends({
|
||||
"lodash.has": "4.5.2",
|
||||
"lodash.throttle": "4.1.1",
|
||||
"lodash.once": "4.1.1",
|
||||
"lodash.identity": "3.0.0",
|
||||
"lodash.isobject": "3.0.2",
|
||||
"lodash.clone": "4.5.0"
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user