allow changing the number of root nodes
This commit is contained in:
1 parent
e5a5850354
commit
4c1fe1d9bb
6 files changed
+112
-21
No files matched your search
@@ -126,11 +126,9 @@ impl VirtualDom {
|
||||
}
|
||||
});
|
||||
|
||||
for root in node.root_ids {
|
||||
if let Some(id) = root.get() {
|
||||
if id.0 != 0 {
|
||||
self.try_reclaim(id);
|
||||
}
|
||||
for id in &node.root_ids {
|
||||
if id.0 != 0 {
|
||||
self.try_reclaim(id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user