Add inheritance-checking lint

This commit is contained in:
Manish Goregaokar 2014-12-01 14:13:50 -05:00
parent 7d65673561
commit d761877ef6
9 changed files with 139 additions and 21 deletions

View file

@ -240,3 +240,12 @@ impl<'a> EventMethods for JSRef<'a, Event> {
}
}
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);
}
}