From fca303f6e4fe97bfe6e263af2c4ce8ee6cdbd232 Mon Sep 17 00:00:00 2001 From: Johan Nyman Date: Wed, 25 Nov 2020 14:50:26 +0100 Subject: [PATCH] Split to multiple lines --- packages/meteor/helpers.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/meteor/helpers.js b/packages/meteor/helpers.js index 54ebbe3ae7..1c8a7f4697 100644 --- a/packages/meteor/helpers.js +++ b/packages/meteor/helpers.js @@ -81,7 +81,11 @@ Meteor._delete = function (obj /*, arguments */) { /** * @memberOf Meteor - * @summary Wrap a function that takes a callback function as its final parameter. The signature of the callback of the wrapped function should be `function(error, result){}`. On the server, the wrapped function can be used either synchronously (without passing a callback) or asynchronously (when a callback is passed). On the client, a callback is always required; errors will be logged if there is no callback. If a callback is provided, the environment captured when the original function was called will be restored in the callback. + * @summary Wrap a function that takes a callback function as its final parameter. + * The signature of the callback of the wrapped function should be `function(error, result){}`. + * On the server, the wrapped function can be used either synchronously (without passing a callback) or asynchronously + * (when a callback is passed). On the client, a callback is always required; errors will be logged if there is no callback. + * If a callback is provided, the environment captured when the original function was called will be restored in the callback. * @locus Anywhere * @param {Function} func A function that takes a callback as its final parameter * @param {Object} [context] Optional `this` object against which the original function will be invoked