diff options
Diffstat (limited to 'src/find-reverse.js')
-rw-r--r-- | src/find-reverse.js | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/find-reverse.js b/src/find-reverse.js index 47e0e268..5f8e2100 100644 --- a/src/find-reverse.js +++ b/src/find-reverse.js @@ -69,9 +69,6 @@ export function tokenProxy({ handle: customHandle = (_key) => undefined, - - decorate = - (_token, _key) => {}, }) { return new Proxy({}, { get: (store, key) => { @@ -91,10 +88,12 @@ export function tokenProxy({ }; store[key] = (...args) => behavior(...args); - decorate(store[key], key); + store[key][tokenKey] = key; } return store[key]; }, - }); + }); } + +export const tokenKey = Symbol.for('find.tokenKey'); |