fix vec2list projection: reset len to 0 on VecDiff::Clear

This commit is contained in:
Michael Sippel 2024-06-06 14:37:18 +02:00
parent e2c8ea8441
commit 81bd253dd6
Signed by: senvas
GPG key ID: F96CF119C34B64A6
3 changed files with 6 additions and 11 deletions
src/view

View file

@ -107,8 +107,6 @@ where V::Msg: Clone
pub fn attach_to_port(&self, other_port: ViewPort<V>) {
self.set_view( other_port.view.read().unwrap().clone() );
other_port.add_observer( self.cast.clone() );
// todo: forward reset() ?
self.update_hooks.write().unwrap().clear();
self.add_update_hook( Arc::new(other_port) );
}