Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit e4d237f59ac30a06e5052d3db423387e5bedfc9b 1 parent a5cc93e
@glasser glasser authored
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();
});
});
Please sign in to comment.
Something went wrong with that request. Please try again.