diff options
author | Martin Jurča <martin.jurca@firma.seznam.cz> | 2018-02-20 10:30:56 +0100 |
---|---|---|
committer | Martin Jurča <martin.jurca@firma.seznam.cz> | 2018-02-20 10:30:56 +0100 |
commit | 6a2c5b4de833c73f656945253e7b72e31870c88a (patch) | |
tree | 479ca343f50e67fd6c48cc80ff7f18530ca5d48a /plugin/notes | |
parent | 8468d82433cd04952e1fdc0ce68363a2cf618b13 (diff) | |
download | perl-software-in-gnu-guix-6a2c5b4de833c73f656945253e7b72e31870c88a.tar perl-software-in-gnu-guix-6a2c5b4de833c73f656945253e7b72e31870c88a.tar.gz |
documentation
Diffstat (limited to 'plugin/notes')
-rw-r--r-- | plugin/notes/notes.html | 3 | ||||
-rw-r--r-- | plugin/notes/notes.js | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/plugin/notes/notes.html b/plugin/notes/notes.html index eff1275..a6bd5e2 100644 --- a/plugin/notes/notes.html +++ b/plugin/notes/notes.html @@ -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; diff --git a/plugin/notes/notes.js b/plugin/notes/notes.js index dd7df8e..dce9b4e 100644 --- a/plugin/notes/notes.js +++ b/plugin/notes/notes.js @@ -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( { |