more cleanup
This commit is contained in:
1 parent
9f99f46cfd
commit
5cbdc571e3
10 files changed
+148
-192
No files matched your search
@@ -195,11 +195,7 @@ impl Scope {
|
||||
// A safe wrapper around calling listeners
|
||||
//
|
||||
//
|
||||
pub(crate) fn call_listener(
|
||||
&mut self,
|
||||
event: SyntheticEvent,
|
||||
element: ElementId,
|
||||
) -> Option<()> {
|
||||
pub(crate) fn call_listener(&mut self, event: SyntheticEvent, element: ElementId) {
|
||||
let listners = self.listeners.borrow_mut();
|
||||
|
||||
let raw_listener = listners.iter().find(|lis| {
|
||||
@@ -222,8 +218,6 @@ impl Scope {
|
||||
} else {
|
||||
log::warn!("An event was triggered but there was no listener to handle it");
|
||||
}
|
||||
|
||||
Some(())
|
||||
}
|
||||
|
||||
pub fn root(&self) -> &VNode {
|
||||
|
||||
Reference in new issue
Block a user