blockly > Flyout > dispose
Flyout.dispose() method
Dispose of this flyout. Unlink from all DOM elements to prevent memory leaks.
Signature:
dispose(): void;
Returns:
void
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[null,null,["Last updated 2024-09-18 UTC."],[[["The `dispose()` method is used to remove the flyout and prevent memory leaks."],["It works by unlinking the flyout from associated DOM elements."],["Calling `dispose()` doesn't return any value."]]],["The `Flyout.dispose()` method is used to remove a flyout from the DOM. Its primary function is to prevent memory leaks by unlinking the flyout from all associated DOM elements. The method takes no parameters and returns nothing, indicated by the `void` return type. Essentially, it cleans up the flyout's resources when it is no longer needed.\n"]]