diff --git a/lib/ddp-client.js b/lib/ddp-client.js index f314000..7e65c10 100644 --- a/lib/ddp-client.js +++ b/lib/ddp-client.js @@ -506,10 +506,10 @@ DDPClient.prototype.unsubscribe = function(id) { /** * 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. */ -DDPClient.prototype.observe = function(name, added, updated, removed) { +DDPClient.prototype.observe = function(name, added, changed, removed) { var self = this; var observer = {}; var id = self._getNextId(); @@ -523,7 +523,7 @@ DDPClient.prototype.observe = function(name, added, updated, removed) { 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() {