This is an automated email from the ASF dual-hosted git repository.

harbs pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new 2c3f930e78 Use the IntersectionObserver typedef
2c3f930e78 is described below

commit 2c3f930e7866f24d0e10f76f8cb2171c2483ba39
Author: Harbs <[email protected]>
AuthorDate: Sun Aug 27 16:58:09 2023 +0300

    Use the IntersectionObserver typedef
---
 .../src/main/royale/org/apache/royale/html/beads/InfiniteScroller.as   | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/InfiniteScroller.as
 
b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/InfiniteScroller.as
index 4b43fb18ef..8afe54f2a6 100644
--- 
a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/InfiniteScroller.as
+++ 
b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/InfiniteScroller.as
@@ -144,8 +144,7 @@ package org.apache.royale.html.beads
                        pendingObserve = false;
                        if(!observer){
                                var element:HTMLElement = scrollContainer? 
scrollContainer.element : host.element;
-                               //TODO add IntersectionObserver to typedefs
-                               observer = new 
window["IntersectionObserver"](handleItemIntersection, {
+                               observer = new 
IntersectionObserver(handleItemIntersection, {
                                        root: element,
                                        rootMargin: isNaN(margin) ? "0px" : 
margin + "px",
                                        threshold: threshold

Reply via email to