Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dotansimha committed Sep 13, 2017
1 parent 6b8fead commit 05d1e67
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 11 deletions.
1 change: 1 addition & 0 deletions dist/ObservableCollection.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Mongo } from 'meteor/mongo';
import { Observable } from 'rxjs';
import { ObservableCursor } from './ObservableCursor';
import Selector = Mongo.Selector;
Expand Down
1 change: 1 addition & 0 deletions dist/ObservableCollection.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/ObservableCollection.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/ObservableCursor.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/ObservableCursor.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions dist/bundles/index.umd.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('rxjs')) :
typeof define === 'function' && define.amd ? define(['exports', 'rxjs'], factory) :
(factory((global.meteor = global.meteor || {}, global.meteor.rxjs = {}),global.rxjs));
}(this, (function (exports,rxjs) { 'use strict';
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('meteor/mongo'), require('rxjs')) :
typeof define === 'function' && define.amd ? define(['exports', 'meteor/mongo', 'rxjs'], factory) :
(factory((global.meteor = global.meteor || {}, global.meteor.rxjs = {}),global.mongo,global.rxjs));
}(this, (function (exports,mongo,rxjs) { 'use strict';

'use strict';
var subscribeEvents = ['onReady', 'onError', 'onStop'];
Expand Down Expand Up @@ -80,7 +80,7 @@ var ObservableCursor = /** @class */ (function (_super) {
if (!_this._hCursor) {
_this._hCursor = _this._observeCursor(cursor);
}
setTimeout(function () {
Meteor.setTimeout(function () {
if (_this._isDataInitinialized) {
observer.next(_this._data);
}
Expand Down Expand Up @@ -261,11 +261,11 @@ var ObservableCursor = /** @class */ (function (_super) {
* @constructor
*/
function Collection(nameOrExisting, options) {
if (nameOrExisting instanceof Mongo.Collection) {
if (nameOrExisting instanceof mongo.Mongo.Collection) {
this._collection = nameOrExisting;
}
else {
this._collection = new Mongo.Collection(nameOrExisting, options);
this._collection = new mongo.Mongo.Collection(nameOrExisting, options);
}
}
Object.defineProperty(Collection.prototype, "collection", {
Expand Down
1 change: 1 addition & 0 deletions src/ObservableCollection.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Mongo } from 'meteor/mongo';
import { Observable, Subscriber } from 'rxjs';
import { ObservableCursor } from './ObservableCursor';
import { removeObserver } from './utils';
Expand Down
2 changes: 1 addition & 1 deletion src/ObservableCursor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class ObservableCursor<T> extends Observable<T[]> {
this._hCursor = this._observeCursor(cursor);
}

setTimeout(() => {
Meteor.setTimeout(() => {
if (this._isDataInitinialized) {
observer.next(this._data);
} else if (cursor.count() === 0) {
Expand Down

0 comments on commit 05d1e67

Please sign in to comment.