Expose CallbackObject more.

This will make it easier to use new fields added to it.
This commit is contained in:
Ms2ger 2017-01-06 18:01:10 +01:00
parent 11c21d3b1d
commit b8554abaa4
3 changed files with 31 additions and 22 deletions

View file

@ -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 {