diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2018-10-04 13:26:16 +0200 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2018-10-04 13:26:22 +0200 |
commit | d5cf3fa13c899014008314d41292880fa8b699bd (patch) | |
tree | ab48c34dadd6d9aebf8fddd473267c4a4b03890a /plugin/notes/notes.html | |
parent | 8582c9aac8888bc71d2658377778279a5d5f0c34 (diff) | |
download | perl-software-in-gnu-guix-d5cf3fa13c899014008314d41292880fa8b699bd.tar perl-software-in-gnu-guix-d5cf3fa13c899014008314d41292880fa8b699bd.tar.gz |
formatting and tweaks for #2104
Diffstat (limited to 'plugin/notes/notes.html')
-rw-r--r-- | plugin/notes/notes.html | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/plugin/notes/notes.html b/plugin/notes/notes.html index 56f5187..9e0b230 100644 --- a/plugin/notes/notes.html +++ b/plugin/notes/notes.html @@ -408,6 +408,7 @@ * Asynchronously calls the Reveal.js API of the main frame. */ function callRevealApi( methodName, methodArguments, callback ) { + var callId = ++lastRevealApiCallId; pendingCalls[callId] = callback; window.opener.postMessage( JSON.stringify( { @@ -417,6 +418,7 @@ methodName: methodName, arguments: methodArguments } ), '*' ); + } /** @@ -535,7 +537,7 @@ function getTimings( callback ) { - callRevealApi( 'getSlidesMetaInfo', [], function ( slides ) { + callRevealApi( 'getSlidesAttributes', [], function ( slideAttributes ) { callRevealApi( 'getConfig', [], function ( config ) { var defaultTiming = config.defaultTiming; if (defaultTiming == null) { @@ -544,8 +546,8 @@ } var timings = []; - for ( var i in slides ) { - var slide = slides[ i ]; + for ( var i in slideAttributes ) { + var slide = slideAttributes[ i ]; var timing = defaultTiming; if( slide.hasOwnProperty( 'data-timing' )) { var t = slide[ 'data-timing' ]; |