mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
remove extra clones from dom event script
This commit is contained in:
parent
cfef68f92d
commit
c5f562aa07
1 changed files with 2 additions and 2 deletions
|
@ -330,8 +330,8 @@ impl Runnable for EventRunnable {
|
||||||
|
|
||||||
fn handler(self: Box<EventRunnable>) {
|
fn handler(self: Box<EventRunnable>) {
|
||||||
let target = self.target.root();
|
let target = self.target.root();
|
||||||
let bubbles = self.bubbles.clone();
|
let bubbles = self.bubbles;
|
||||||
let cancelable = self.cancelable.clone();
|
let cancelable = self.cancelable;
|
||||||
target.fire_event_with_params(self.name, bubbles, cancelable);
|
target.fire_event_with_params(self.name, bubbles, cancelable);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue