File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -7,18 +7,16 @@ class PlaceholderWithoutTracking extends React.Component {
7
7
constructor ( props ) {
8
8
super ( props ) ;
9
9
10
- if ( ! this . LAZY_LOAD_OBSERVER ) {
11
- const supportsObserver = isIntersectionObserverAvailable ( ) ;
10
+ const supportsObserver = isIntersectionObserverAvailable ( ) ;
12
11
13
- this . LAZY_LOAD_OBSERVER = { supportsObserver } ;
12
+ this . LAZY_LOAD_OBSERVER = { supportsObserver } ;
14
13
15
- if ( supportsObserver ) {
16
- const { threshold } = props ;
14
+ if ( supportsObserver ) {
15
+ const { threshold } = props ;
17
16
18
- this . LAZY_LOAD_OBSERVER . observer = new IntersectionObserver (
19
- this . checkIntersections , { rootMargin : threshold + 'px' }
20
- ) ;
21
- }
17
+ this . LAZY_LOAD_OBSERVER . observer = new IntersectionObserver (
18
+ this . checkIntersections , { rootMargin : threshold + 'px' }
19
+ ) ;
22
20
}
23
21
}
24
22
You can’t perform that action at this time.
0 commit comments