Browse Source

Merge branch 'master' of http://git.bbh/chess/elxr

master
guest 2 years ago
parent
commit
59b402839e
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      index.js

+ 3
- 3
index.js View File

// console.log(k) // console.log(k)
// console.dir(possiblePrompts); //console.dir(target) // console.dir(possiblePrompts); //console.dir(target)
prompts.push(async ()=>{ prompts.push(async ()=>{
// PB : NOTE -- Important in async cases when this needs to be in the same state as when it was invoked.
// We take a snapshot... Shallow.. !! If required deep should be used based on use case.
// If latest altered state is required we can reerence this directly.
// PB : NOTE -- Important in async cases when this {{target}} needs to be in the same state as when it was invoked.
// We need to take a snapshot... Shallow.. !! If required deep should be used based on use case.
// var asyncthis = Object.assign(this); // var asyncthis = Object.assign(this);
// By default Latest altered state is provided which is an implicit reference directly.
promptables[k].choices = choices[k] promptables[k].choices = choices[k]
Object.defineProperty(target, k, getPromptableAsyncPropDescriptor(k, promptables[k])); Object.defineProperty(target, k, getPromptableAsyncPropDescriptor(k, promptables[k]));
return await target[k] return await target[k]

Loading…
Cancel
Save