소스 검색

Added some notes

production
guest 2 년 전
부모
커밋
0ba06fb29d
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3
    3
      index.js

+ 3
- 3
index.js 파일 보기

@@ -2954,10 +2954,10 @@ var getBoundEachPrompt = function(target, possiblePrompts, promptables, choices,
// console.log(k)
// console.dir(possiblePrompts); //console.dir(target)
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);
// By default Latest altered state is provided which is an implicit reference directly.
promptables[k].choices = choices[k]
Object.defineProperty(target, k, getPromptableAsyncPropDescriptor(k, promptables[k]));
return await target[k]

Loading…
취소
저장