cursor.forEach

Anywhere cursor.forEach(callback, [thisArg]) Source Call callback once for each matching document, sequentially and synchronously. Arguments callback Function Function to call. It will be called with three arguments: the document, a 0-based index, and cursor itself. thisArg Any An object which will be the value of this inside callback.

cursor.fetch

Anywhere cursor.fetch() Source Return all matching documents as an Array.

cursor.count

Anywhere cursor.count() Source Returns the number of documents that match a query.

Cordova.depends

package.js Cordova.depends(dependencies) Specify which Cordova / PhoneGap plugins your Meteor package depends on. Plugins are installed from plugins.cordova.io, so the plugins and versions specified must exist there. Alternatively, the version can be replaced with a GitHub tarball URL as described in the Cordova page of the Meteor wiki on GitHub. Arguments dependencies Object An object where the keys are plugin names and the values are version numbers or GitHub tarball URLs in string

Contribution guidelines

Please submit clarifications and improvements to the Guide! If it’s just a small fix, go ahead and open a PR. If it’s something more major, please file an issue for discussion first. Using the change log If you are adding significant new content, please take a moment to include an update to the changelog in your PR. Writing tips Things to be aware of: Always use specific IDs on headers so that we can change them later: // bad ## Using schemas with collections // good <h2 id="schemas-with-co

computation.stopped

Client computation.stopped Source True if this computation has been stopped.

computation.stop

Client computation.stop() Source Prevents this computation from rerunning.

computation.onStop

Client computation.onStop(callback) Source Registers callback to run when this computation is stopped, or runs it immediately if the computation is already stopped. The callback is run after any onInvalidate callbacks. Arguments callback Function Function to be called on stop. Receives one argument, the computation that was stopped.

computation.onInvalidate

Client computation.onInvalidate(callback) Source Registers callback to run when this computation is next invalidated, or runs it immediately if the computation is already invalidated. The callback is run exactly once and not upon future invalidations unless onInvalidate is called again after the computation becomes valid again. Arguments callback Function Function to be called on invalidation. Receives one argument, the computation that was invalidated.

computation.invalidated

Client computation.invalidated Source True if this computation has been invalidated (and not yet rerun), or if it has been stopped.