set the scope stack correctly
This commit is contained in:
1 parent
b09e528aaa
commit
a2c7b69a1d
4 files changed
+9
-9
No files matched your search
@@ -65,11 +65,8 @@ impl<'b> VirtualDom {
|
||||
/// Create a new template [`VNode`] and write it to the [`Mutations`] buffer.
|
||||
///
|
||||
/// This method pushes the ScopeID to the internal scopestack and returns the number of nodes created.
|
||||
pub(crate) fn create_scope(&mut self, scope: ScopeId, template: &'b VNode<'b>) -> usize {
|
||||
self.runtime.scope_stack.borrow_mut().push(scope);
|
||||
let out = self.create(template);
|
||||
self.runtime.scope_stack.borrow_mut().pop();
|
||||
out
|
||||
pub(crate) fn create_scope(&mut self, _scope: ScopeId, template: &'b VNode<'b>) -> usize {
|
||||
self.create(template)
|
||||
}
|
||||
|
||||
/// Create this template and write its mutations
|
||||
|
||||
Reference in new issue
Block a user