mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Remove unnecessary deref()
s (fixes #3586)
This commit is contained in:
parent
15b508ac10
commit
35f8270c64
30 changed files with 147 additions and 164 deletions
|
@ -45,7 +45,7 @@ impl CustomEvent {
|
|||
}
|
||||
pub fn new(global: &GlobalRef, type_: DOMString, bubbles: bool, cancelable: bool, detail: JSVal) -> Temporary<CustomEvent> {
|
||||
let ev = CustomEvent::new_uninitialized(global).root();
|
||||
ev.deref().InitCustomEvent(global.get_cx(), type_, bubbles, cancelable, detail);
|
||||
ev.InitCustomEvent(global.get_cx(), type_, bubbles, cancelable, detail);
|
||||
Temporary::from_rooted(*ev)
|
||||
}
|
||||
pub fn Constructor(global: &GlobalRef,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue