mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 07:47:24 +00:00
Add input dialog
This commit is contained in:
@@ -677,6 +677,7 @@ class JSAutoFreeFunction {
|
||||
|
||||
/// Automatically free the function when it's not used anymore
|
||||
JSAutoFreeFunction(this.func) {
|
||||
func.dup();
|
||||
finalizer.attach(this, func);
|
||||
}
|
||||
|
||||
@@ -685,6 +686,6 @@ class JSAutoFreeFunction {
|
||||
}
|
||||
|
||||
static final finalizer = Finalizer<JSInvokable>((func) {
|
||||
func.free();
|
||||
func.destroy();
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user