From 763b003a113d51673ae7905995c6ede1839404a2 Mon Sep 17 00:00:00 2001 From: jdalton Date: Mon, 23 Mar 2015 20:04:13 -0700 Subject: [PATCH] Add note about `_.runInContext` to `_.mixin` docs. [ci skip] --- lodash.src.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lodash.src.js b/lodash.src.js index a12fe4aee..b1a5d094a 100644 --- a/lodash.src.js +++ b/lodash.src.js @@ -11065,6 +11065,9 @@ * destination object. If `object` is a function then methods are added to * its prototype as well. * + * **Note:** Use `_.runInContext` to create a pristine `lodash` function + * for mixins to avoid conflicts caused by modifying the original. + * * @static * @memberOf _ * @category Utility @@ -11082,7 +11085,7 @@ * }); * } * - * // use `_.runInContext` to avoid potential conflicts (esp. in Node.js) + * // use `_.runInContext` to avoid conflicts (esp. in Node.js) * var _ = require('lodash').runInContext(); * * _.mixin({ 'vowels': vowels });