Skip to content
Browse files

docs: custom publish functions don't need to unset in onStop.

  • Loading branch information...
1 parent a5cc93e commit e4d237f59ac30a06e5052d3db423387e5bedfc9b @glasser glasser committed Nov 5, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 docs/client/api.html
View
4 docs/client/api.html
@@ -95,11 +95,9 @@ <h2 id="publishandsubscribe"><span>Publish and subscribe</span></h2>
self.complete();
self.flush();
- // remove data and turn off observe when client unsubs
+ // stop observing the cursor when client unsubs
self.onStop(function () {
handle.stop();
- self.unset("counts", uuid, ["roomId", "count"]);
- self.flush();
});
});

0 comments on commit e4d237f

Please sign in to comment.
Something went wrong with that request. Please try again.