Cleanup more of core

This commit is contained in:
Jonathan Kelley committed 2024-01-16 17:14:19 -08:00
1 parent 9f595171ce
commit 374c7d0cd8
10 files changed
+192 -237

No files matched your search

+9
View File
@@ -27,6 +27,15 @@ pub struct Event<T: 'static + ?Sized> {
pub(crate) propagates: Rc<Cell<bool>>,
}
impl<T: ?Sized + 'static> Event<T> {
pub(crate) fn new(data: Rc<T>, bubbles: bool) -> Self {
Self {
data,
propagates: Rc::new(Cell::new(bubbles)),
}
}
}
impl<T> Event<T> {
/// Map the event data to a new type
///