File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 842842 "_listeners" : " Io" ,
843843 "_plyr" : " Lo" ,
844844 "_ratio" : " Ko" ,
845- "_source" : " Jo"
845+ "_source" : " Jo" ,
846+ "_watchMetadata" : " Mo"
846847}
Original file line number Diff line number Diff line change @@ -25,9 +25,8 @@ export class SlotObserver {
2525 }
2626
2727 assign ( template : Element | TemplateResult , slot : HTMLSlotElement ) {
28- slot . textContent = '' ;
29-
3028 if ( isDOMNode ( template ) ) {
29+ slot . textContent = '' ;
3130 slot . append ( template ) ;
3231 } else {
3332 render ( template , slot ) ;
Original file line number Diff line number Diff line change @@ -94,7 +94,12 @@ export function isElementVisible(el: HTMLElement) {
9494}
9595
9696export function checkVisibility ( el : HTMLElement | null ) {
97- return ! ! el && el . checkVisibility ( { checkOpacity : true , checkVisibilityCSS : true } ) ;
97+ return (
98+ ! ! el &&
99+ ( 'checkVisibility' in el
100+ ? el . checkVisibility ( { checkOpacity : true , checkVisibilityCSS : true } )
101+ : isElementVisible ( el ) )
102+ ) ;
98103}
99104
100105export function observeVisibility ( el : HTMLElement , callback : ( isVisible : boolean ) => void ) {
You can’t perform that action at this time.
0 commit comments