MCPcopy Index your code
hub / github.com/ygs-code/vue / pushTarget

Function pushTarget

vue.js:1046–1053  ·  view source on GitHub ↗
(_target)

Source from the content-addressed store, hash-verified

1044 var targetStack = [];
1045
1046 function pushTarget(_target) {
1047 //target 是Watcher dep就是dep对象
1048 if (Dep.target) { //静态标志 Dep当前是否有添加了target
1049 //添加一个pushTarget
1050 targetStack.push(Dep.target);
1051 }
1052 Dep.target = _target;
1053 }
1054
1055 //
1056 function popTarget() {

Callers 3

callHookFunction · 0.85
vue.jsFile · 0.85
getDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected