@@ -95,36 +95,14 @@ function init() {
9595 }
9696 }
9797
98- // TurboFrameObserver delegate methods
99- frameConnected ( frame ) {
98+ // Delegate methods
99+ turboFramesChanged ( ) {
100100 this . sendTurboFrames ( )
101101 }
102- frameDisconnected ( frame ) {
103- this . sendTurboFrames ( )
104- }
105- frameAttributeChanged ( frame , attributeName , oldValue , newValue ) {
106- this . sendTurboFrames ( )
107- }
108-
109- // TurboCableObserver delegate methods
110- turboCableConnected ( element ) {
111- this . sendTurboCableData ( )
112- }
113- turboCableDisconnected ( element ) {
102+ turboCableChaned ( ) {
114103 this . sendTurboCableData ( )
115104 }
116- turboCableAttributeChanged ( element , attributeName , oldValue , newValue ) {
117- this . sendTurboCableData ( )
118- }
119-
120- // Stimulus delegate methods
121- stimulusControllerConnected ( element ) {
122- this . sendStimulusData ( )
123- }
124- stimulusControllerDisonnected ( element ) {
125- this . sendStimulusData ( )
126- }
127- stimulusControllerChanged ( element , attributeName , oldValue , newValue ) {
105+ stimulusDataChanged ( ) {
128106 this . sendStimulusData ( )
129107 }
130108
@@ -190,7 +168,7 @@ function init() {
190168 this . _postMessage ( {
191169 stimulusData : this . observers . stimulus . getStimulusData ( ) ,
192170 url : btoa ( window . location . href ) ,
193- type : BACKEND_TO_PANEL_MESSAGES . SET_STIMULUS_CONTROLLERS ,
171+ type : BACKEND_TO_PANEL_MESSAGES . SET_STIMULUS_DATA ,
194172 } )
195173 } , 10 )
196174
0 commit comments