@@ -25,7 +25,6 @@ export class OcdkSurface extends HTMLElement implements OcdkSurfaceBehaviour {
25
25
26
26
constructor ( ) {
27
27
super ( ) ;
28
- this . logger . log ( 'constructor' ) ;
29
28
this . adapter = this . getDefaultAdapter ( ) ;
30
29
31
30
this . controller = new OcdkSurfaceController ( this ) ;
@@ -73,7 +72,6 @@ export class OcdkSurface extends HTMLElement implements OcdkSurfaceBehaviour {
73
72
* @param animated - have to animated or not
74
73
*/
75
74
set animated ( animated : boolean ) {
76
- this . logger . log ( 'animated' , animated ) ;
77
75
this . processAnimated ( animated , true ) ;
78
76
}
79
77
@@ -92,7 +90,6 @@ export class OcdkSurface extends HTMLElement implements OcdkSurfaceBehaviour {
92
90
* @param name - name of the wanted animation
93
91
*/
94
92
set animation ( name : OcdkSurfaceAnimation | 'none' | undefined ) {
95
- this . logger . log ( 'animation' , name ) ;
96
93
this . processAnimation ( name , true ) ;
97
94
}
98
95
@@ -106,7 +103,6 @@ export class OcdkSurface extends HTMLElement implements OcdkSurfaceBehaviour {
106
103
* @param corners - tuple of corner references (anchor, origin)
107
104
*/
108
105
set corners ( corners : [ OcdkSurfaceCorner , OcdkSurfaceCorner ] ) {
109
- this . logger . log ( 'corners' , corners ) ;
110
106
this . controller . setCornerPoints ( { anchor : corners [ 0 ] , origin : corners [ 1 ] } ) ;
111
107
}
112
108
@@ -119,7 +115,6 @@ export class OcdkSurface extends HTMLElement implements OcdkSurfaceBehaviour {
119
115
* @param opened - is opened or not
120
116
*/
121
117
set opened ( opened : boolean ) {
122
- this . logger . log ( 'opened' , opened ) ;
123
118
if ( opened ) {
124
119
this . setAttribute ( 'opened' , '' ) ;
125
120
this . controller . open ( ) ;
@@ -135,8 +130,7 @@ export class OcdkSurface extends HTMLElement implements OcdkSurfaceBehaviour {
135
130
* @param oldValue - previous value
136
131
* @param newValue - current value
137
132
*/
138
- attributeChangedCallback ( name : any , oldValue : any , newValue : any | null ) {
139
- this . logger . log ( 'oldValue' , { name, oldValue, newValue } ) ;
133
+ attributeChangedCallback ( name : any , _oldValue : any , newValue : any | null ) {
140
134
switch ( name ) {
141
135
case 'animation' :
142
136
this . processAnimation ( newValue ) ;
@@ -158,7 +152,6 @@ export class OcdkSurface extends HTMLElement implements OcdkSurfaceBehaviour {
158
152
* Hide the `surface` overlay.
159
153
*/
160
154
close ( ) {
161
- this . logger . log ( 'close' ) ;
162
155
this . opened = false ;
163
156
}
164
157
@@ -171,10 +164,6 @@ export class OcdkSurface extends HTMLElement implements OcdkSurfaceBehaviour {
171
164
this . logger . log ( '[connectedCallback]' , 'set anchor' , { anchorElement : this . anchorElement } ) ;
172
165
}
173
166
174
- const slot = this . shadowRoot ?. querySelector ( 'slot' )
175
- if ( slot ) {
176
- this . logger . log ( slot . assignedElements ( ) ) ;
177
- }
178
167
179
168
this . animated = this . animation . toLowerCase ( ) === 'none' ? false : true ;
180
169
this . animation = this . animation . toLowerCase ( ) as OcdkSurfaceAnimation ;
@@ -189,7 +178,6 @@ export class OcdkSurface extends HTMLElement implements OcdkSurfaceBehaviour {
189
178
* Display the `surface` overlay and display it with the selected position strategy.
190
179
*/
191
180
open ( ) : void {
192
- this . logger . log ( 'open' ) ;
193
181
this . opened = true ;
194
182
}
195
183
@@ -207,7 +195,6 @@ export class OcdkSurface extends HTMLElement implements OcdkSurfaceBehaviour {
207
195
* @param element - html element to set as the anchor
208
196
*/
209
197
setAnchorElement ( element : Element ) : void {
210
- this . logger . log ( '[setAnchorElement]' , { element } ) ;
211
198
this . anchorElement = element ;
212
199
}
213
200
0 commit comments