@@ -129,19 +129,19 @@ Symfony UX Map allows you to extend its default behavior using a custom Stimulus
129129 connect () {
130130 this .element .addEventListener (' ux:map:pre-connect' , this ._onPreConnect );
131131 this .element .addEventListener (' ux:map:connect' , this ._onConnect );
132- this .element .addEventListener (' ux:map:marker:before-create' , this ._onMarkerBeforeConnect );
132+ this .element .addEventListener (' ux:map:marker:before-create' , this ._onMarkerBeforeCreate );
133133 this .element .addEventListener (' ux:map:marker:after-create' , this ._onMarkerAfterCreate );
134- this .element .addEventListener (' ux:map:info-window:before-create' , this ._onInfoWindowBeforeConnect );
134+ this .element .addEventListener (' ux:map:info-window:before-create' , this ._onInfoWindowBeforeCreate );
135135 this .element .addEventListener (' ux:map:info-window:after-create' , this ._onInfoWindowAfterCreate );
136136 }
137137
138138 disconnect () {
139139 // You should always remove listeners when the controller is disconnected to avoid side effects
140140 this .element .removeEventListener (' ux:map:pre-connect' , this ._onPreConnect );
141141 this .element .removeEventListener (' ux:map:connect' , this ._onConnect );
142- this .element .removeEventListener (' ux:map:marker:before-create' , this ._onMarkerBeforeConnect );
142+ this .element .removeEventListener (' ux:map:marker:before-create' , this ._onMarkerBeforeCreate );
143143 this .element .removeEventListener (' ux:map:marker:after-create' , this ._onMarkerAfterCreate );
144- this .element .removeEventListener (' ux:map:info-window:before-create' , this ._onInfoWindowBeforeConnect );
144+ this .element .removeEventListener (' ux:map:info-window:before-create' , this ._onInfoWindowBeforeCreate );
145145 this .element .removeEventListener (' ux:map:info-window:after-create' , this ._onInfoWindowAfterCreate );
146146 }
147147
@@ -159,7 +159,7 @@ Symfony UX Map allows you to extend its default behavior using a custom Stimulus
159159 console .log (event .detail .infoWindows );
160160 }
161161
162- _onMarkerBeforeConnect (event ) {
162+ _onMarkerBeforeCreate (event ) {
163163 // The marker is not created yet
164164 // You can use this event to configure the marker before it is created
165165 console .log (event .detail .definition );
@@ -171,7 +171,7 @@ Symfony UX Map allows you to extend its default behavior using a custom Stimulus
171171 console .log (event .detail .marker );
172172 }
173173
174- _onInfoWindowBeforeConnect (event ) {
174+ _onInfoWindowBeforeCreate (event ) {
175175 // The infoWindow is not created yet
176176 // You can use this event to configure the infoWindow before it is created
177177 console .log (event .detail .definition );
0 commit comments