Docs: In custom publish example, call complete().

This commit is contained in:
David Glasser
2012-10-29 11:56:14 -07:00
parent 6307faafef
commit dee48f736a

View File

@@ -90,6 +90,11 @@ Example:
// don't care about moved or changed
});
// Observe only returns after the initial added callbacks have
// run. Now mark the subscription as ready.
self.complete();
self.flush();
// remove data and turn off observe when client unsubs
self.onStop(function () {
handle.stop();