Skip to content

Commit d23b5d6

Browse files
committed
minor #1258 [Doc] Fix preConnect/connect inversion in "disconnect()" doc examples (smnandre)
This PR was merged into the 2.x branch. Discussion ---------- [Doc] Fix preConnect/connect inversion in "disconnect()" doc examples Following symfony/ux#1227 i found other similar cases of callback inversion in the documentation. Commits ------- 3f8218f5 Fix preConnect/connect inversion in "disconnect()" doc examples
2 parents 4e3f627 + 5c4a7a8 commit d23b5d6

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
@@ -101,8 +101,8 @@ Stimulus controller:
101101
102102
disconnect() {
103103
// You should always remove listeners when the controller is disconnected to avoid side-effects
104-
this.element.removeEventListener('typed:pre-connect', this._onConnect);
105-
this.element.removeEventListener('typed:connect', this._onPreConnect);
104+
this.element.removeEventListener('typed:connect', this._onConnect);
105+
this.element.removeEventListener('typed:pre-connect', this._onPreConnect);
106106
}
107107
108108
_onPreConnect(event) {

0 commit comments

Comments
 (0)