MCPcopy
hub / github.com/hotwired/stimulus / disconnect

Method disconnect

src/core/context.ts:58–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56 }
57
58 disconnect() {
59 try {
60 this.controller.disconnect()
61 this.logDebugActivity("disconnect")
62 } catch (error: any) {
63 this.handleError(error, "disconnecting controller")
64 }
65
66 this.outletObserver.stop()
67 this.targetObserver.stop()
68 this.valueObserver.stop()
69 this.bindingObserver.stop()
70 }
71
72 get application(): Application {
73 return this.module.application

Callers 6

stopMethod · 0.45
pauseMethod · 0.45
stopMethod · 0.45
stopMethod · 0.45

Calls 2

handleErrorMethod · 0.95
stopMethod · 0.65

Tested by

no test coverage detected