Skip to content

Commit

Permalink
fix: root更新合并过程丢失reflowList #104
Browse files Browse the repository at this point in the history
  • Loading branch information
army8735 committed Nov 2, 2020
1 parent 18607fe commit cc481ab
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19992,6 +19992,7 @@
keys.forEach(function (k) {
parseUpdate(renderMode, _this5, updateHash, updateHash[k], reflowList, measureList, cacheHash, cacheList);
});
this.__reflowList = reflowList;
/**
* 遍历每项节点,计算测量信息,节点向上向下查找继承信息,如果parent也是继承,先计算parent的
* 过程中可能会出现重复,因此节点上记录一个临时标防止重复递归
Expand Down
2 changes: 1 addition & 1 deletion index.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/node/Root.js
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,7 @@ class Root extends Dom {
keys.forEach(k => {
parseUpdate(renderMode, this, updateHash, updateHash[k], reflowList, measureList, cacheHash, cacheList);
});
this.__reflowList = reflowList;
/**
* 遍历每项节点,计算测量信息,节点向上向下查找继承信息,如果parent也是继承,先计算parent的
* 过程中可能会出现重复,因此节点上记录一个临时标防止重复递归
Expand Down

0 comments on commit cc481ab

Please sign in to comment.