Accessing API with multiple embedded presentations #3126
Unanswered
jaybonthius
asked this question in
Q&A
Replies: 1 comment
-
You can fix this by changing The error here is due to how hoisting works in JS. Your Using |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the documentation for API Methods, it says
But what if I'm working with multiple embedded presentations? I've tried a few of different things, none of which work.
On my page, I have a few embedded presentations which I initialize in a
for
loop. Then I try to detectslidechanged
events with.on('slidechanged', ...)
. This correctly detects slide changes on each presentation, but thenconsole.log(rev.getCurrentSlide())
outputs the current slide of the last presentation on the page (regardless of which presentation had aslidechanged
event).What am I doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions