Skip to content

Commit fac39c1

Browse files
committed
Fix preConnect/connect inversion in "disconnect()" doc examples
1 parent 3dec061 commit fac39c1

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
@@ -154,8 +154,8 @@ Stimulus controller:
154154
155155
disconnect() {
156156
// You should always remove listeners when the controller is disconnected to avoid side-effects
157-
this.element.removeEventListener('swup:pre-connect', this._onConnect);
158-
this.element.removeEventListener('swup:connect', this._onPreConnect);
157+
this.element.removeEventListener('swup:connect', this._onConnect);
158+
this.element.removeEventListener('swup:pre-connect', this._onPreConnect);
159159
}
160160
161161
_onPreConnect(event) {

0 commit comments

Comments
 (0)