Privatize InheritTypes

This commit is contained in:
Tim Taubert 2014-10-12 18:53:31 +02:00
parent acd98a73a4
commit 9a52bb8310
80 changed files with 252 additions and 101 deletions

View file

@ -21,8 +21,9 @@ use std::default::Default;
#[jstraceable]
#[must_root]
#[privatize]
pub struct UIEvent {
pub event: Event,
event: Event,
view: MutNullableJS<Window>,
detail: Cell<i32>
}
@ -67,6 +68,11 @@ impl UIEvent {
init.view.root_ref(), init.detail);
Ok(event)
}
#[inline]
pub fn event<'a>(&'a self) -> &'a Event {
&self.event
}
}
impl<'a> UIEventMethods for JSRef<'a, UIEvent> {