fix vec2list projection: reset len to 0 on VecDiff::Clear
This commit is contained in:
parent
e2c8ea8441
commit
81bd253dd6
3 changed files with 6 additions and 11 deletions
src/view
|
@ -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) );
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue