mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Migrate EventTarget
event firing functions to use Atom
s.
This allows us to utilize more `atom` macros.
This commit is contained in:
parent
80575c3d2e
commit
f447040ea9
16 changed files with 42 additions and 33 deletions
|
@ -498,7 +498,7 @@ impl Runnable for ConnectionEstablishedTask {
|
|||
}
|
||||
|
||||
// Step 6.
|
||||
ws.upcast().fire_event("open");
|
||||
ws.upcast().fire_event(atom!("open"));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -548,7 +548,7 @@ impl Runnable for CloseTask {
|
|||
|
||||
// Step 2.
|
||||
if self.failed {
|
||||
ws.upcast().fire_event("error");
|
||||
ws.upcast().fire_event(atom!("error"));
|
||||
}
|
||||
|
||||
// Step 3.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue