extend interpreter base class with platform methods

This commit is contained in:
Jonathan Kelley committed 2024-02-27 12:31:11 -08:00
1 parent 7f60010c1e
commit b5447c162f
27 files changed
+1394 -1371

No files matched your search

+9
View File
@@ -168,6 +168,15 @@ impl Runtime {
pub(crate) fn release_flush_lock(&self) {
self.flush_lock.take();
}
/// Dispatch an event against the current runtime
///
/// This won't do any diffing or anything, just calling event listeners syncronously
/// We expose this via the runtime so that preventDefault, stopPropagation, and other event methods can be called
/// while the event is still active.
pub fn dispatch_event(&self) {
todo!()
}
}
/// A guard for a new runtime. This must be used to override the current runtime when importing components from a dynamic library that has it's own runtime.