mirror of
https://github.com/servo/servo.git
synced 2025-10-07 20:19:21 +01:00
Use internal mutability for Event.
This commit is contained in:
parent
d255a83a48
commit
0b364d13b6
8 changed files with 105 additions and 111 deletions
|
@ -90,7 +90,7 @@ impl<'a> UIEventMethods for JSRef<'a, UIEvent> {
|
|||
view: Option<JSRef<Window>>,
|
||||
detail: i32) {
|
||||
{
|
||||
let event: &mut JSRef<Event> = EventCast::from_mut_ref(self);
|
||||
let event: &JSRef<Event> = EventCast::from_ref(self);
|
||||
event.InitEvent(type_, can_bubble, cancelable);
|
||||
}
|
||||
self.view.assign(view);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue