Cleanup more of core
This commit is contained in:
10 files changed
+192
-237
No files matched your search
@@ -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
|
||||
///
|
||||
|
||||
Reference in new issue
Block a user