Fix autofill event downcast - ignore events of the wrong type (#5379)
* fix autofill events * ignore the wrong type of event like we do in desktop * check the event type before dispatch instead of panicing on downcast * clean up conversion * remove example * pull out shared event list * pull in deserialize_raw * unified event list * prettier comment * restore test * restore alias * normal doc comments * move over comments * minimize diff * remove alias, was moved into the macro
This commit is contained in:
1 parent
610ee8107f
commit
d8026f8824
27 files changed
+596
-960
No files matched your search
@@ -94,13 +94,3 @@ pub trait HasImageData: std::any::Any {
|
||||
/// return self as Any
|
||||
fn as_any(&self) -> &dyn std::any::Any;
|
||||
}
|
||||
|
||||
impl_event! [
|
||||
ImageData;
|
||||
|
||||
/// onerror
|
||||
onerror
|
||||
|
||||
/// onload
|
||||
onload
|
||||
];
|
||||
Reference in new issue
Block a user