Merge pull request #1441 from ealmloff/fix-uplink
Expose public methods for manipulating the global runtime
This commit is contained in:
3 files changed
+65
-8
No files matched your search
@@ -662,6 +662,11 @@ impl VirtualDom {
|
||||
fn finalize(&mut self) -> Mutations {
|
||||
std::mem::take(&mut self.mutations)
|
||||
}
|
||||
|
||||
/// Get the current runtime
|
||||
pub fn runtime(&self) -> Rc<Runtime> {
|
||||
self.runtime.clone()
|
||||
}
|
||||
}
|
||||
|
||||
impl Drop for VirtualDom {
|
||||
|
||||
Reference in new issue
Block a user