Stay organized with collections
Save and categorize content based on your preferences.
blockly > comments > CommentView > removeOnCollapseListener
Removes the given listener from the list of on collapse listeners.
Signature:
removeOnCollapseListener(listener: () => void): void;
Parameters
Parameter |
Type |
Description |
listener |
() => 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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["`CodeGenerator.INFINITE_LOOP_TRAP` allows you to insert custom code to detect and handle potential infinite loops in generated code."],["This property accepts a string containing code, where '%1' will be substituted with the ID of the block causing the loop."],["If not needed, this property can be set to `null`."]]],["The `removeOnCollapseListener()` method, part of the `CommentView` class, removes a specified listener from the list of \"on collapse\" listeners. It takes one parameter, `listener`, which is a function with no parameters and no return value. This method's action is to remove the `listener` from the internal list of functions to be called on collapse, and it doesn't return anything.\n"]]