Skip to content

Commit 4fcc24e

Browse files
committed
Fix preConnect/connect inversion in "disconnect()" doc examples
1 parent e0c36d8 commit 4fcc24e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ custom Stimulus controller:
104104
105105
disconnect() {
106106
// You should always remove listeners when the controller is disconnected to avoid side effects
107-
this.element.removeEventListener('cropperjs:pre-connect', this._onConnect);
108107
this.element.removeEventListener('cropperjs:connect', this._onConnect);
108+
this.element.removeEventListener('cropperjs:pre-connect', this._onPreConnect);
109109
}
110110
111111
_onPreConnect(event) {

0 commit comments

Comments
 (0)