Skip to content

Commit f65a5e4

Browse files
committed
bugfix(multiple-subscribers): Revert :(
1 parent ace9c78 commit f65a5e4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dist/ObservableCollection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export var MongoObservable;
8686
};
8787
Collection.prototype.find = function (selector, options) {
8888
var cursor = this._collection.find.apply(this._collection, arguments);
89-
return ObservableCursor.create(cursor).publish().refCount();
89+
return ObservableCursor.create(cursor);
9090
};
9191
Collection.prototype.findOne = function (selector, options) {
9292
return this._collection.findOne.apply(this._collection, arguments);

dist/bundles/index.umd.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ var ObservableCursor = (function (_super) {
242242
};
243243
Collection.prototype.find = function (selector, options) {
244244
var cursor = this._collection.find.apply(this._collection, arguments);
245-
return ObservableCursor.create(cursor).publish().refCount();
245+
return ObservableCursor.create(cursor);
246246
};
247247
Collection.prototype.findOne = function (selector, options) {
248248
return this._collection.findOne.apply(this._collection, arguments);

src/ObservableCollection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export module MongoObservable {
142142
}): ObservableCursor<T> {
143143
const cursor = this._collection.find.apply(
144144
this._collection, arguments);
145-
return ObservableCursor.create<T>(cursor).publish().refCount();
145+
return ObservableCursor.create<T>(cursor);
146146
}
147147

148148
findOne(selector?: Selector | ObjectID | string, options?: {

0 commit comments

Comments
 (0)