Skip to content

Commit

Permalink
chore(collection): Changed the method name
Browse files Browse the repository at this point in the history
  • Loading branch information
dotansimha committed Sep 22, 2016
1 parent d49e7bb commit de33898
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/ObservableCollection.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export declare module MongoObservable {
fetch?: string[];
transform?: Function;
}
function create<T>(collection: Mongo.Collection<T>): Collection<T>;
function fromExisting<T>(collection: Mongo.Collection<T>): Collection<T>;
class Collection<T> {
private _collection;
constructor(nameOrExisting: string | Mongo.Collection<T>, options?: ConstructorOptions);
Expand Down
4 changes: 2 additions & 2 deletions dist/ObservableCollection.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ var ObservableCursor_1 = require('./ObservableCursor');
var MongoObservable;
(function (MongoObservable) {
'use strict';
function create(collection) {
function fromExisting(collection) {
return new MongoObservable.Collection(collection);
}
MongoObservable.create = create;
MongoObservable.fromExisting = fromExisting;
var Collection = (function () {
function Collection(nameOrExisting, options) {
if (typeof nameOrExisting === 'string') {
Expand Down
2 changes: 1 addition & 1 deletion src/ObservableCollection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export module MongoObservable {
transform ? : Function;
}

export function create<T>(collection: Mongo.Collection<T>) {
export function fromExisting<T>(collection: Mongo.Collection<T>) {
return new MongoObservable.Collection(collection);
}

Expand Down

0 comments on commit de33898

Please sign in to comment.