Skip to content

Commit 5c4a7a8

Browse files
committed
Fix preConnect/connect inversion in "disconnect()" doc examples
1 parent 83b07e8 commit 5c4a7a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ Stimulus controller:
9999
100100
disconnect() {
101101
// You should always remove listeners when the controller is disconnected to avoid side-effects
102-
this.element.removeEventListener('typed:pre-connect', this._onConnect);
103-
this.element.removeEventListener('typed:connect', this._onPreConnect);
102+
this.element.removeEventListener('typed:connect', this._onConnect);
103+
this.element.removeEventListener('typed:pre-connect', this._onPreConnect);
104104
}
105105
106106
_onPreConnect(event) {

0 commit comments

Comments
 (0)