documentation

This commit is contained in:
Martin Jurča
2018-02-20 10:30:56 +01:00
parent 8468d82433
commit 6a2c5b4de8
3 changed files with 10 additions and 0 deletions

View File

@ -378,6 +378,9 @@
} );
/**
* Asynchronously calls the Reveal.js API of the main frame.
*/
function callRevealApi( methodName, methodArguments, callback ) {
var callId = ++lastRevealApiCallId;
pendingCalls[callId] = callback;

View File

@ -51,6 +51,10 @@ var RevealNotes = (function() {
} );
}
/**
* Calls the specified Reveal.js method with the provided argument and then pushes the result to the notes
* frame.
*/
function callRevealApi( methodName, methodArguments, callId ) {
var result = Reveal[methodName].call(Reveal, methodArguments);
notesPopup.postMessage( JSON.stringify( {