mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Docs: In custom publish example, call complete().
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user