From dee48f736a74eb0ecf171195cbf6a04b225c2fe1 Mon Sep 17 00:00:00 2001 From: David Glasser Date: Mon, 29 Oct 2012 11:56:14 -0700 Subject: [PATCH] Docs: In custom publish example, call complete(). --- docs/client/api.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/client/api.html b/docs/client/api.html index ce7d16c1c1..17f92a7b9f 100644 --- a/docs/client/api.html +++ b/docs/client/api.html @@ -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();