MCPcopy Create free account
hub / github.com/Autodesk/react-base-table / off

Method off

website/src/utils/eventEmitter.js:10–14  ·  view source on GitHub ↗
(type, handler)

Source from the content-addressed store, hash-verified

8 }
9
10 off(type, handler) {
11 const handlers = this.handlersMap[type] || []
12 const index = handlers.indexOf(handler)
13 if (index >= 0) handlers.splice(index, 1)
14 }
15
16 emit(type, event) {
17 const handlers = this.handlersMap[type] || []

Callers 1

componentWillUnmountFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected