Add trusted setter to Event

This commit is contained in:
Manish Goregaokar 2014-11-16 03:45:44 +05:30
parent e2376a64bf
commit c3fdd60adc
2 changed files with 12 additions and 1 deletions

View file

@ -245,3 +245,13 @@ impl Reflectable for Event {
&self.reflector_
}
}
pub trait EventHelpers {
fn set_trusted(self, trusted: bool);
}
impl<'a> EventHelpers for JSRef<'a, Event> {
fn set_trusted(self, trusted: bool) {
self.trusted.set(trusted);
}
}