From 7196f0148ea20be3d6e5e02902decb797375fb4c Mon Sep 17 00:00:00 2001 From: josieusa Date: Thu, 5 Jan 2017 17:12:50 +0100 Subject: [PATCH] Add comment about methods not re-bound --- server/current-context.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/current-context.js b/server/current-context.js index d901bd5..87915fb 100644 --- a/server/current-context.js +++ b/server/current-context.js @@ -79,6 +79,12 @@ LoopBackContext.createContext = function(scopeName) { // Set up LoopBackContext.getCurrentContext() LoopBackContext.getCurrentContext = function() { if (ns && ns.active) { + /** + * **NOTE** + * This only re-binds get and set methods, the most used. + * If you use other methods of the context, e.g. runInContext(), etc., + * you may run into unexpected issues that are fixed only for get, set. + */ var boundMethods = { get: ns.bind(ns.get), set: ns.bind(ns.set),