如果主动关闭 视图调试窗口,应该释放对视图树的引用
@AdamCaoQAQ is already working on this.
Since Mar 23, 2022.
Assessment
This issue has not been assessed yet.
Description
AnimationEntry1 子视图的释放在控制台不能输出
描述
Hummer version:
复现步骤
预期结果
class AnimationEntry1 extends View {
view: View;
constructor() {
super();
this.style = {
width: 200,
height: 200,
backgroundColor: '#aa0044'
};
this.view = new View();
this.view.style = {
width: 100,
height: 100,
backgroundColor: '#00FF00'
}
this.appendChild(this.view);
}
}
class RootView extends View {
listViews:Array<AnimationEntry1> = new Array<AnimationEntry1>()
constructor() {
super();
this.style = {
width: '100%',
height: '100%',
backgroundColor: "#FF0000",
}
for (let index = 0; index <3; index++) {
const element = new AnimationEntry1();
this.listViews.push(element);
this.appendChild(element);
}
this.addEventListener('tap', ()=> {
while(this.listViews.length > 0) {
this.listViews.pop();
}
this.removeAll();
console.log("AnimationEntry 点击了");
});
}
}
Hummer.render(new RootView());
- Dominant language
- Objective-C
- Stars
- 1.4k
- Forks
- 186
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from didi/Hummer
-
支持svg图吗?Openenhancement Needs: Triage 🔍
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
T i t li leOpenbug Needs: Triage 🔍
Difficulty 5/5 Over a week Newbie friendliness 1/100
-
升级yoga3(yoga2)后,scroller 在不设置size 时,两端大小表现不一致May be free again @yFeii claimed this 860 days ago, and no pull request is open. Openbug Needs: Triage 🔍
-
bug Needs: Triage 🔍
Difficulty 4/5 3-5 days Newbie friendliness 20/100
-
bug Needs: Triage 🔍
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Similar issues
-
A heading containing `$` or `\` is mangled in the table of contentsPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
schuyler/macdown3000#693 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
yetanotherbrowser/yab#1062 ·
Maintainers usually reply within 1 day
-
Peek: the card's top-bar buttons can miss a press while the card is pinchedPossibly taken @mjkang-estrella claimed this 2 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
ardia-browser/ardia#3087 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
darlinghq/darling#2335 · 1 comment ·
Maintainers usually reply within 1 day
-
Cocoa
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
getsentry/sentry-cocoa#9693 · 1 comment ·
Maintainers usually reply within 1 day