mirror of
https://github.com/servo/servo.git
synced 2025-07-31 19:20:22 +01:00
Remove a pointless clone() call.
This commit is contained in:
parent
f4cf90f127
commit
73b9925cc1
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ fn dispatch_to_listeners(event: &Event, target: &EventTarget, chain: &[&EventTar
|
|||
|
||||
/* at target */
|
||||
event.set_phase(EventPhase::AtTarget);
|
||||
event.set_current_target(target.clone());
|
||||
event.set_current_target(target);
|
||||
|
||||
if let Some(listeners) = target.get_listeners(&type_) {
|
||||
for listener in listeners {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue