Stay organized with collections
Save and categorize content based on your preferences.
blockly > browserEvents > unbind
browserEvents.unbind() function
Unbind one or more events event from a function call.
Signature:
export declare function unbind(bindData: Data): (e: Event) => void;
Parameters
Parameter |
Type |
Description |
bindData |
Data |
Opaque data from bindEvent_. This list is emptied during the course of calling this function. |
Returns:
(e: Event) => void
The function call.
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."],[[["\u003cp\u003eThe \u003ccode\u003ebrowserEvents.unbind()\u003c/code\u003e function is used to detach one or more events from their associated function calls.\u003c/p\u003e\n"],["\u003cp\u003eIt takes a \u003ccode\u003ebindData\u003c/code\u003e object, which contains information about the events and functions to unbind, as input.\u003c/p\u003e\n"],["\u003cp\u003eCalling \u003ccode\u003eunbind()\u003c/code\u003e removes the specified events from the list, effectively stopping them from triggering their associated function.\u003c/p\u003e\n"],["\u003cp\u003eThe function returns the original function call that was bound to the events.\u003c/p\u003e\n"]]],[],null,["[blockly](./blockly.md) \\\u003e [browserEvents](./blockly.browserevents_namespace.md) \\\u003e [unbind](./blockly.browserevents_namespace.unbind_1_function.md)\n\nbrowserEvents.unbind() function\n-------------------------------\n\nUnbind one or more events event from a function call.\n\n**Signature:** \n\n export declare function unbind(bindData: Data): (e: Event) =\u003e void;\n\nParameters\n----------\n\n| Parameter | Type | Description |\n|-----------|-------------------------------------------------------------|-----------------------------------------------------------------------------------------------|\n| bindData | [Data](./blockly.browserevents_namespace.data_typealias.md) | Opaque data from bindEvent_. This list is emptied during the course of calling this function. |\n\n**Returns:**\n\n(e: Event) =\\\u003e void\n\nThe function call."]]