Skip to content

Commit

Permalink
Fix interaction of rAF with wrap (#1334)
Browse files Browse the repository at this point in the history
* Fix interaction of rAF with wrap

* none

* none

* none

* none

* oops

Co-authored-by: Pavel Panchekha <me@pavpanchekha.com>

---------

Co-authored-by: Pavel Panchekha <me@pavpanchekha.com>
  • Loading branch information
chrishtr and pavpanchekha authored Aug 17, 2024
1 parent 4995ed8 commit e2f405d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions book/embeds.md
Original file line number Diff line number Diff line change
Expand Up @@ -960,14 +960,12 @@ class Tab:
# ...
```

In this code I used a new `dispatch_RAF` method, which is just like the
pre-iframe code but wraps the call for the specified `window_id`:
In this code I used a new `dispatch_RAF` method:

``` {.python}
``` {.python expected=False}
class JSContext:
def dispatch_RAF(self, window_id):
code = self.wrap("window.__runRAFHandlers()", window_id)
self.interp.evaljs(code)
def dispatch_RAF(self):
self.interp.evaljs("window.__runRAFHandlers()")
```

Note that the `needs_accessibility`, `pending_hover`, and other flags
Expand Down

0 comments on commit e2f405d

Please sign in to comment.