mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Expose CallbackObject more.
This will make it easier to use new fields added to it.
This commit is contained in:
parent
11c21d3b1d
commit
b8554abaa4
3 changed files with 31 additions and 22 deletions
|
@ -484,7 +484,7 @@ impl EventTarget {
|
|||
|
||||
pub fn get_event_handler_common<T: CallbackContainer>(&self, ty: &str) -> Option<Rc<T>> {
|
||||
let listener = self.get_inline_event_listener(&Atom::from(ty));
|
||||
listener.map(|listener| CallbackContainer::new(listener.parent().callback()))
|
||||
listener.map(|listener| CallbackContainer::new(listener.parent().callback_holder().get()))
|
||||
}
|
||||
|
||||
pub fn has_handlers(&self) -> bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue