Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -450,10 +450,10 @@ class DDPClient extends EventEmitter{
/**
* Adds an observer to a collection and returns the observer.
* Observation can be stopped by calling the stop() method on the observer.
* Functions for added, updated and removed can be added to the observer
* Functions for added, changed and removed can be added to the observer
* afterward.
*/
observe(name, added, updated, removed) {
observe(name, added, changed, removed) {
var self = this;
var observer = {};
var id = self._getNextId();
Expand All @@ -467,7 +467,7 @@ class DDPClient extends EventEmitter{
Object.defineProperty(observer, "_id", { get: function() { return id; }});

observer.added = added || function(){};
observer.updated = updated || function(){};
observer.changed = changed || function(){};
observer.removed = removed || function(){};

observer.stop = function() {
Expand Down